0

contribManager: Python 3 compatibility

This commit is contained in:
Nicolas F
2019-03-18 18:52:32 +01:00
parent a709dbccf5
commit a533f3a396

View File

@@ -1,10 +1,8 @@
#!/usr/bin/env python2 #!/usr/bin/env python3
"""The contrib manager is used to help control the contrib scripts """The contrib manager is used to help control the contrib scripts
that are shipped with overviewer in Windows packages.""" that are shipped with overviewer in Windows packages."""
from __future__ import print_function
import ast import ast
import os.path import os.path
import sys import sys
@@ -79,4 +77,4 @@ if not os.path.exists(torun):
print("Script '%s' is missing!" % script, file=sys.stderr) print("Script '%s' is missing!" % script, file=sys.stderr)
sys.exit(1) sys.exit(1)
execfile(torun) exec(compile(open(torun, "rb").read(), torun, 'exec'))