diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-26 22:10:21 -0800 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2009-12-27 16:00:42 -0800 |
commit | f12186eb62580c6e481b300a4422b1f012dfa555 (patch) | |
tree | a357355bf2d63f5de07e896e1385d01cf80720db | |
parent | 142b8343f9d7ac3b0f32419a120be2856d2251e8 (diff) | |
download | python-cheetah-f12186eb62580c6e481b300a4422b1f012dfa555.tar.gz |
Switch SetupTools.py's exceptions to use 'as'
-rw-r--r-- | SetupTools.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SetupTools.py b/SetupTools.py index 5892e72..39d104a 100644 --- a/SetupTools.py +++ b/SetupTools.py @@ -47,13 +47,13 @@ class mod_build_ext(build_ext): def run(self): try: build_ext.run(self) - except DistutilsPlatformError, x: + except DistutilsPlatformError as x: raise BuildFailed(x) def build_extension(self, ext): try: build_ext.build_extension(self, ext) - except ext_errors, x: + except ext_errors as x: raise BuildFailed(x) @@ -155,8 +155,8 @@ def run_setup(configurations): # Invoke distutils setup try: - setup(**kws) - except BuildFailed, x: + apply(setup, (), kws) + except BuildFailed as x: print("One or more C extensions failed to build.") print("Details: %s" % x) print("Retrying without C extensions enabled.") |