This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients alexandre.vassalotti, pitrou
Date 2009-02-14.22:31:40
SpamBayes Score 5.6426614e-09
Marked as misclassified No
Message-id <1234650711.9.0.239815315496.issue5264@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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
History
Date User Action Args
2009-02-14 22:31:52pitrousetrecipients: + pitrou, alexandre.vassalotti
2009-02-14 22:31:51pitrousetmessageid: <1234650711.9.0.239815315496.issue5264@psf.upfronthosting.co.za>
2009-02-14 22:31:40pitroulinkissue5264 messages
2009-02-14 22:31:40pitroucreate