From a533f3a3965c08c4d51f6b89b4701293b94dff81 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 18 Mar 2019 18:52:32 +0100 Subject: [PATCH] contribManager: Python 3 compatibility --- contribManager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contribManager.py b/contribManager.py index aa4fc26..18e87a0 100755 --- a/contribManager.py +++ b/contribManager.py @@ -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'))