Author: Mark Young <marky1...@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: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit