[pypy-commit] pypy unicode-utf8-py3: fix translation
mattip
pypy.commits at gmail.com
Tue Nov 13 09:11:41 EST 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8-py3
Changeset: r95313:f8e25026d0af
Date: 2018-11-13 06:08 -0800
http://bitbucket.org/pypy/pypy/changeset/f8e25026d0af/
Log: fix translation
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -806,8 +806,8 @@
raise oefmt(space.w_ValueError, "type name must not contain null characters")
pos = surrogate_in_utf8(name)
if pos >= 0:
- raise oefmt(space.w_ValueError, "can't encode character %c in position "
- "%i, surrogates not allowed", name[pos], pos)
+ raise oefmt(space.w_ValueError, "can't encode character %s in position "
+ "%d, surrogates not allowed", name[pos], pos)
dict_w = {}
dictkeys_w = space.listview(w_dict)
for w_key in dictkeys_w:
More information about the pypy-commit
mailing list