Author: Richard Plangger <[email protected]>
Branch: py3.5
Changeset: r90308:342121c5c4e5
Date: 2017-02-22 17:04 +0100
http://bitbucket.org/pypy/pypy/changeset/342121c5c4e5/
Log: revert back to text_w and add comment
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
@@ -724,7 +724,7 @@
return space.call_function(newfunc, w_winner, w_name, w_bases,
w_dict)
w_typetype = w_winner
- name = space.identifier_w(w_name)
+ name = space.text_w(w_name) # NB. CPython forbids surrogates here
assert isinstance(name, str)
if '\x00' in name:
raise oefmt(space.w_ValueError, "type name must not contain null
characters")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit