Author alexandre.vassalotti
Recipients alexandre.vassalotti, amaury.forgeotdarc
Date 2007-08-27.22:38:50
SpamBayes Score 0.0252849
Marked as misclassified No
Message-id <>
> 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.
File name Uploaded
no_write_nl_translate.patch alexandre.vassalotti, 2007-08-27.22:38:50
Date User Action Args
2007-08-27 22:38:50alexandre.vassalottisetspambayes_score: 0.0252849 -> 0.0252849
recipients: + alexandre.vassalotti, amaury.forgeotdarc
2007-08-27 22:38:50alexandre.vassalottisetspambayes_score: 0.0252849 -> 0.0252849
messageid: <>
2007-08-27 22:38:50alexandre.vassalottilinkissue1029 messages
2007-08-27 22:38:50alexandre.vassalotticreate