Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r94958:ff00333ba97b
Date: 2018-08-05 15:31 -0700
http://bitbucket.org/pypy/pypy/changeset/ff00333ba97b/
Log: more internal unicode->utf8
diff --git a/pypy/interpreter/function.py b/pypy/interpreter/function.py
--- a/pypy/interpreter/function.py
+++ b/pypy/interpreter/function.py
@@ -554,7 +554,7 @@
except OperationError as e:
if not e.match(space, space.w_TypeError):
raise
- name = u'?'
+ name = '?'
objrepr = space.utf8_w(space.repr(self.w_instance))
s = b'<bound method %s of %s>' % (name, objrepr)
return space.newtext(s)
diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator.py
--- a/pypy/interpreter/generator.py
+++ b/pypy/interpreter/generator.py
@@ -397,7 +397,7 @@
self.frame is not None and \
self.frame.last_instr == -1:
space = self.space
- msg = u"coroutine '%s' was never awaited" % self.get_qualname()
+ msg = "coroutine '%s' was never awaited" % self.get_qualname()
space.warn(space.newtext(msg), space.w_RuntimeWarning)
GeneratorOrCoroutine._finalize_(self)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit