[pypy-svn] pypy default: list(u"") is not valid.
alex_gaynor
commits-noreply at bitbucket.org
Fri Feb 4 22:23:58 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r41618:65b796deaab8
Date: 2011-02-04 16:23 -0500
http://bitbucket.org/pypy/pypy/changeset/65b796deaab8/
Log: list(u"") is not valid.
diff --git a/pypy/module/_io/interp_stringio.py b/pypy/module/_io/interp_stringio.py
--- a/pypy/module/_io/interp_stringio.py
+++ b/pypy/module/_io/interp_stringio.py
@@ -91,7 +91,7 @@
initval = space.unicode_w(w_initval)
size = len(initval)
self.resize_buffer(size)
- self.buf = list(initval)
+ self.buf = [c for c in initval]
pos = space.getindex_w(w_pos, space.w_TypeError)
if pos < 0:
raise OperationError(space.w_ValueError,
More information about the Pypy-commit
mailing list