Commit a6b5c2bc authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

--HG--
extra : rebase_source : 6af2668167742f4cebd6d43ad442541b5f7305ce
parent 061dbfe3
...@@ -183,7 +183,7 @@ def load_module(name, pyxfilename, pyxbuild_dir=None): ...@@ -183,7 +183,7 @@ def load_module(name, pyxfilename, pyxbuild_dir=None):
so_path = build_module(name, pyxfilename, pyxbuild_dir) so_path = build_module(name, pyxfilename, pyxbuild_dir)
mod = imp.load_dynamic(name, so_path) mod = imp.load_dynamic(name, so_path)
assert mod.__file__ == so_path, (mod.__file__, so_path) assert mod.__file__ == so_path, (mod.__file__, so_path)
except Exception, e: except Exception:
import traceback import traceback
raise ImportError("Building module failed: %s" % raise ImportError("Building module failed: %s" %
traceback.format_exception_only(*sys.exc_info()[:2])),None,sys.exc_info()[2] traceback.format_exception_only(*sys.exc_info()[:2])),None,sys.exc_info()[2]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment