mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Use Python3 syntax for except clause.
This commit is contained in:
2
build.py
2
build.py
@@ -501,7 +501,7 @@ def getTool(cmdName, version, MD5, envVar, platformBinary):
|
||||
try:
|
||||
p = subprocess.Popen([cmd, '--help'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
|
||||
p.wait()
|
||||
except OSError, e:
|
||||
except OSError as e:
|
||||
print('ERROR: Could not execute %s, got "%s"' % (cmd, e))
|
||||
print(' Set %s in the environment to use a local build of %s instead' % (envVar, cmdName))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user