diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-27 14:24:35 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-02-27 14:31:12 -0700 |
commit | c6397ba59fba25989b0ba37ad8267325757f1dcd (patch) | |
tree | 1501c04214cbf846badc7988de6ff5f2094c9940 /tools/win32build | |
parent | 208072f817ac14f041569f0123d3434bc9e0daba (diff) | |
download | python-numpy-c6397ba59fba25989b0ba37ad8267325757f1dcd.tar.gz python-numpy-c6397ba59fba25989b0ba37ad8267325757f1dcd.tar.bz2 python-numpy-c6397ba59fba25989b0ba37ad8267325757f1dcd.zip |
2to3: Updata `except Exception, msg:` syntax in files not in numpy/ .
This should finish the updating of the exception syntax.
Diffstat (limited to 'tools/win32build')
-rw-r--r-- | tools/win32build/build.py | 2 | ||||
-rw-r--r-- | tools/win32build/prepare_bootstrap.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/win32build/build.py b/tools/win32build/build.py index b1b592db5..4acb2e879 100644 --- a/tools/win32build/build.py +++ b/tools/win32build/build.py @@ -63,7 +63,7 @@ def build(arch, pyver): subprocess.check_call(cmd, shell = True, stderr = subprocess.STDOUT, stdout = f) finally: f.close() - except subprocess.CalledProcessError, e: + except subprocess.CalledProcessError as e: msg = """ There was an error while executing the following command: diff --git a/tools/win32build/prepare_bootstrap.py b/tools/win32build/prepare_bootstrap.py index 73d1a4b61..f1d8edbfb 100644 --- a/tools/win32build/prepare_bootstrap.py +++ b/tools/win32build/prepare_bootstrap.py @@ -18,7 +18,7 @@ def build_sdist(): os.chdir('../..') cmd = ["python", "setup.py", "sdist", "--format=zip"] subprocess.call(cmd) - except Exception, e: + except Exception as e: raise RuntimeError("Error while executing cmd (%s)" % e) finally: os.chdir(cwd) |