Author: Armin Rigo <ar...@tunes.org> Branch: py3.6 Changeset: r96460:c9339f40372b Date: 2019-04-13 18:28 +0200 http://bitbucket.org/pypy/pypy/changeset/c9339f40372b/
Log: Translation fix diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py --- a/pypy/objspace/std/unicodeobject.py +++ b/pypy/objspace/std/unicodeobject.py @@ -98,7 +98,9 @@ def listview_ascii(self): if self.is_ascii(): - return list(self._utf8) + return [c for c in self._utf8] + # rpython note: can't use list() to return a list of strings + # (only a list of chars is supported) return None def descr_iter(self, space): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit