[pypy-svn] rev 597 - pypy/trunk/src/pypy/module

mwh at codespeak.net mwh at codespeak.net
Tue May 27 18:11:17 CEST 2003


Author: mwh
Date: Tue May 27 18:11:16 2003
New Revision: 597

Modified:
   pypy/trunk/src/pypy/module/builtin.py
Log:
oops, instantiate exception before raising.



Modified: pypy/trunk/src/pypy/module/builtin.py
==============================================================================
--- pypy/trunk/src/pypy/module/builtin.py	(original)
+++ pypy/trunk/src/pypy/module/builtin.py	Tue May 27 18:11:16 2003
@@ -39,8 +39,9 @@
             if w_mod is not None:
                 space.setitem(space.w_modules,w_modulename,w_mod)
                 return w_mod
+            w_exc = space.call_function(space.w_ImportError, w_modulename)
             raise executioncontext.OperationError(
-                      space.w_ImportError, w_modulename)
+                      space.w_ImportError, w_exc)
     __import__ = appmethod(__import__)
 
     def compile(self, w_str, w_filename, w_startstr,


More information about the Pypy-commit mailing list