[pypy-commit] pypy py3.3: Fix translation.
marky1991
pypy.commits at gmail.com
Wed Feb 24 04:06:55 EST 2016
Author: Mark Young <marky1991 at gmail.com>
Branch: py3.3
Changeset: r82472:6aef6089a236
Date: 2016-02-14 12:48 -0500
http://bitbucket.org/pypy/pypy/changeset/6aef6089a236/
Log: Fix translation.
diff --git a/lib-python/3/importlib/_bootstrap.py b/lib-python/3/importlib/_bootstrap.py
--- a/lib-python/3/importlib/_bootstrap.py
+++ b/lib-python/3/importlib/_bootstrap.py
@@ -1496,7 +1496,6 @@
raise TypeError("module name must be str, not {}".format(type(name)))
if level < 0:
raise ValueError('level must be >= 0')
- #print(name, package, level)
if package:
if not isinstance(package, str):
raise TypeError("__package__ not set to a string")
diff --git a/pypy/interpreter/module.py b/pypy/interpreter/module.py
--- a/pypy/interpreter/module.py
+++ b/pypy/interpreter/module.py
@@ -123,10 +123,10 @@
def descr_module__repr__(self, space):
if self.w_name is not None:
name = space.unicode_w(space.repr(self.w_name))
- nonrepr_name = space.unicode_w(self.w_name)
+ nonrepr_name = self.space.identifier_w(self.w_name)
else:
name = u"'?'"
- nonrepr_name = u"?"
+ nonrepr_name = "?"
if nonrepr_name in self.space.builtin_modules:
return space.wrap(u"<module %s (built-in)>" % name)
try:
More information about the pypy-commit
mailing list