[pypy-svn] pypy default: Fix for unpickling modules (which is a PyPy extension)

arigo commits-noreply at bitbucket.org
Sun Feb 13 11:04:31 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41869:bfe3e55250b6
Date: 2011-02-13 11:04 +0100
http://bitbucket.org/pypy/pypy/changeset/bfe3e55250b6/

Log:	Fix for unpickling modules (which is a PyPy extension)

diff --git a/pypy/module/_pickle_support/maker.py b/pypy/module/_pickle_support/maker.py
--- a/pypy/module/_pickle_support/maker.py
+++ b/pypy/module/_pickle_support/maker.py
@@ -32,7 +32,7 @@
 func_new.unwrap_spec = [ObjSpace]
 
 def module_new(space, w_name, w_dict):
-    new_mod = Module(space, w_name, w_dict)
+    new_mod = Module(space, w_name, w_dict, add_package=False)
     return space.wrap(new_mod)
 
 def method_new(space, __args__):


More information about the Pypy-commit mailing list