[pypy-commit] pypy py3k: fix Module.__reduce__, the name now is an unicode string
antocuni
noreply at buildbot.pypy.org
Fri Feb 24 15:12:00 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52856:99bb29709f3f
Date: 2012-02-24 11:31 +0100
http://bitbucket.org/pypy/pypy/changeset/99bb29709f3f/
Log: fix Module.__reduce__, the name now is an unicode string
diff --git a/pypy/interpreter/module.py b/pypy/interpreter/module.py
--- a/pypy/interpreter/module.py
+++ b/pypy/interpreter/module.py
@@ -80,7 +80,7 @@
def descr__reduce__(self, space):
w_name = space.finditem(self.w_dict, space.wrap('__name__'))
if (w_name is None or
- not space.is_true(space.isinstance(w_name, space.w_str))):
+ not space.is_true(space.isinstance(w_name, space.w_unicode))):
# maybe raise exception here (XXX this path is untested)
return space.w_None
w_modules = space.sys.get('modules')
More information about the pypy-commit
mailing list