Author: marky1991
Branch: py3.3
Changeset: r81699:5e2210cd44a3
Date: 2015-12-17 01:24 -0500
http://bitbucket.org/pypy/pypy/changeset/5e2210cd44a3/

Log:    Merging magic fixes into py3.3 .

diff --git a/pypy/module/imp/interp_imp.py b/pypy/module/imp/interp_imp.py
--- a/pypy/module/imp/interp_imp.py
+++ b/pypy/module/imp/interp_imp.py
@@ -84,7 +84,9 @@
     name = space.str0_w(w_name)
     if name not in space.builtin_modules:
         return
-    return space.getbuiltinmodule(name)
+    #This is needed to make reload actually reload instead of just using the
+    #already-present module in sys.modules.
+    return space.getbuiltinmodule(name, force_init=True)
 
 def init_frozen(space, w_name):
     return None
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to