[pypy-svn] r9294 - pypy/branch/dist-interpapp/pypy/module/builtin

pedronis at codespeak.net pedronis at codespeak.net
Thu Feb 17 20:17:06 CET 2005


Author: pedronis
Date: Thu Feb 17 20:17:06 2005
New Revision: 9294

Modified:
   pypy/branch/dist-interpapp/pypy/module/builtin/importing.py
Log:
small fix to importing access to sys.modules



Modified: pypy/branch/dist-interpapp/pypy/module/builtin/importing.py
==============================================================================
--- pypy/branch/dist-interpapp/pypy/module/builtin/importing.py	(original)
+++ pypy/branch/dist-interpapp/pypy/module/builtin/importing.py	Thu Feb 17 20:17:06 2005
@@ -105,7 +105,7 @@
 
     w_mod = absolute_import(space, modulename, 0, w_fromlist, tentative=0)
     if rel_modulename is not None:
-        space.setitem(space.sys.w_modules, w(rel_modulename),space.w_None)
+        space.setitem(space.sys.get('modules'), w(rel_modulename),space.w_None)
     return w_mod
 #
 importhook.unwrap_spec = [ObjSpace,str,W_Root,W_Root,W_Root]



More information about the Pypy-commit mailing list