Author: Matti Picus <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit