[wip] tools: python3

Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
Wataru Ishida
2020-02-18 01:43:13 -08:00
parent b04e65f58a
commit 224fe6a7cf
17 changed files with 120 additions and 116 deletions

View File

@@ -104,7 +104,7 @@ class OnlSubmoduleManager(object):
for script in os.getenv("ONL_SUBMODULE_UPDATED_SCRIPTS", "").split(':'):
if os.path.exists(script):
try:
print "Calling %s..." % script
print(("Calling %s..." % script))
check_call([script, path], cwd=self.root)
except subprocess.CalledProcessError:
raise OnlSubmoduleError("The repository post-init script %s failed." % script)
@@ -131,6 +131,6 @@ if __name__ == '__main__':
try:
sm = OnlSubmoduleManager(ops.root)
sm.require(ops.path)
except OnlSubmoduleError, e:
except OnlSubmoduleError as e:
logger.error("%s" % e.value)