mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-11-25 10:45:11 +00:00
[wip] tools: python3
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user