diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2011-10-16 12:54:39 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2011-10-16 12:54:39 +0200 |
commit | a6b5c2bc2b30c1ad30f25c61138969da68c4f93e (patch) | |
tree | 7099af01dfe19ba40de346cc9920dbcb33500a9a /pyximport/pyximport.py | |
parent | 061dbfe3303262719e7f6ba9167f0a837709ed99 (diff) | |
download | cython-a6b5c2bc2b30c1ad30f25c61138969da68c4f93e.tar.gz |
minor cleanup
--HG--
extra : rebase_source : 6af2668167742f4cebd6d43ad442541b5f7305ce
Diffstat (limited to 'pyximport/pyximport.py')
-rw-r--r-- | pyximport/pyximport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyximport/pyximport.py b/pyximport/pyximport.py index e2a7d92ce..052a9f3bd 100644 --- a/pyximport/pyximport.py +++ b/pyximport/pyximport.py @@ -183,7 +183,7 @@ def load_module(name, pyxfilename, pyxbuild_dir=None): so_path = build_module(name, pyxfilename, pyxbuild_dir) mod = imp.load_dynamic(name, so_path) assert mod.__file__ == so_path, (mod.__file__, so_path) - except Exception, e: + except Exception: import traceback raise ImportError("Building module failed: %s" % traceback.format_exception_only(*sys.exc_info()[:2])),None,sys.exc_info()[2] |