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
that are shipped with overviewer in Windows packages."""
from __future__ import print_function
import ast
import os.path
import sys
@@ -79,4 +77,4 @@ if not os.path.exists(torun):
print("Script '%s' is missing!" % script, file=sys.stderr)
sys.exit(1)
execfile(torun)
exec(compile(open(torun, "rb").read(), torun, 'exec'))