[issue5264] StringIO failure when reading a chunk of text without newlines

2009-03-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is fixed by the io-c branch merge. (r70152) -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker

[issue5264] StringIO failure when reading a chunk of text without newlines

2009-02-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : >>> f = io.StringIO("a\r\n", newline=None) >>> f.read(1) Traceback (most recent call last): File "", line 1, in File "/home/antoine/py3k/__svn__/Lib/io.py", line 2007, in read res = self._decode_newlines(self._read(n), True) File "/home/antoine/py3k