Author amaury.forgeotdarc
Recipients amaury.forgeotdarc
Date 2007-08-26.22:04:03
SpamBayes Score 0.010936
Marked as misclassified No
Message-id <1188165843.93.0.300230591529.issue1029@psf.upfronthosting.co.za>
In-reply-to
Content
io.StrinIO.getvalue() correctly decodes bytes from the underlying
buffer, but does not translate \r\n to \n.

Python 3.0x (py3k, Aug 26 2007, 14:39:16) [MSC v.1400 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> a = io.StringIO()
>>> a.write('\n')
2
>>> a.getvalue()
'\r\n'

The attached patch corrects this and adds a test.
Files
File name Uploaded
stringio.diff amaury.forgeotdarc, 2007-08-26.22:04:03
History
Date User Action Args
2007-08-26 22:04:04amaury.forgeotdarcsetspambayes_score: 0.010936 -> 0.010936
recipients: + amaury.forgeotdarc
2007-08-26 22:04:03amaury.forgeotdarcsetspambayes_score: 0.010936 -> 0.010936
messageid: <1188165843.93.0.300230591529.issue1029@psf.upfronthosting.co.za>
2007-08-26 22:04:03amaury.forgeotdarclinkissue1029 messages
2007-08-26 22:04:03amaury.forgeotdarccreate