Author: fijal
Branch: unicode-utf8
Changeset: r92943:10e8aaa42286
Date: 2017-11-04 20:46 +0100
http://bitbucket.org/pypy/pypy/changeset/10e8aaa42286/
Log: ups, fix
diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -1288,10 +1288,10 @@
return True
def unwrap(self, w_item):
- return self.space.unicode_w(w_item)
+ return self.space.utf8_w(w_item)
def wrap(self, item):
- return self.space.newunicode(item)
+ return self.space.newutf8(item, len(item), rutf8.FLAG_ASCII)
def iter(self, w_set):
return UnicodeIteratorImplementation(self.space, self, w_set)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit