mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3. Old style exceptions are syntax errors in Python 3 but new style exceptions work as expected in both Python 2 and Python 3.
13 lines
207 B
Python
Executable File
13 lines
207 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from __future__ import print_function
|
|
import sys
|
|
|
|
from lib.util import get_electron_version
|
|
|
|
def main():
|
|
print(get_electron_version())
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|