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 alexandre.vassalotti
Recipients alexandre.vassalotti, amaury.forgeotdarc
Date 2007-08-27.22:38:50
SpamBayes Score 0.025284916
Marked as misclassified No
Message-id <1188254330.68.0.752574943468.issue1029@psf.upfronthosting.co.za>
In-reply-to
Content
> That's why the current behaviour is not correct: When I write('\n'),
> getvalue() currently returns '\r\n'.

Oh, I missed your example in your initial message. So yes, I agree that
StringIO shouldn't translate newlines like that. I attached a patch that
should fix the bug.

However, I would favor removing the "newline" keyword argument, instead.
Files
File name Uploaded
no_write_nl_translate.patch alexandre.vassalotti, 2007-08-27.22:38:50
History
Date User Action Args
2007-08-27 22:38:50alexandre.vassalottisetspambayes_score: 0.0252849 -> 0.025284916
recipients: + alexandre.vassalotti, amaury.forgeotdarc
2007-08-27 22:38:50alexandre.vassalottisetspambayes_score: 0.0252849 -> 0.0252849
messageid: <1188254330.68.0.752574943468.issue1029@psf.upfronthosting.co.za>
2007-08-27 22:38:50alexandre.vassalottilinkissue1029 messages
2007-08-27 22:38:50alexandre.vassalotticreate