[pypy-commit] pypy py3.5: revert back to text_w and add comment
plan_rich
pypy.commits at gmail.com
Wed Feb 22 11:05:32 EST 2017
Author: Richard Plangger <planrichi at gmail.com>
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")
More information about the pypy-commit
mailing list