Author: Ronan Lamy <[email protected]>
Branch: unicode-utf8
Changeset: r93332:5e36b35d5716
Date: 2017-12-09 14:35 +0000
http://bitbucket.org/pypy/pypy/changeset/5e36b35d5716/
Log: fix translation
diff --git a/pypy/module/struct/formatiterator.py
b/pypy/module/struct/formatiterator.py
--- a/pypy/module/struct/formatiterator.py
+++ b/pypy/module/struct/formatiterator.py
@@ -192,7 +192,8 @@
self.result_w.append(w_value)
def append_utf8(self, value):
- self.result_w.append(self.space.newutf8(rutf8.unichr_as_utf8(value),
1))
+ w_ch = self.space.newutf8(rutf8.unichr_as_utf8(r_uint(value), 1))
+ self.result_w.append(w_ch)
def get_pos(self):
return self.pos
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit