Author: Antonio Cuni <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit