You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-03-04.21:38:57.808>created_at=<Date2009-02-14.22:31:40.845>labels= ['type-bug', 'library']
title='StringIO failure when reading a chunk of text without newlines'updated_at=<Date2009-03-04.21:38:57.807>user='https://github.com/pitrou'
>>> f = io.StringIO("a\r\n", newline=None)
>>> f.read(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/antoine/py3k/__svn__/Lib/io.py", line 2007, in read
res = self._decode_newlines(self._read(n), True)
File "/home/antoine/py3k/__svn__/Lib/io.py", line 1953, in
_decode_newlines
return output
UnboundLocalError: local variable 'output' referenced before assignment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: