Message55314
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc |
| Date |
2007年08月26日.22:04:03 |
| SpamBayes Score |
0.01093603 |
| 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:04 | amaury.forgeotdarc | set | spambayes_score: 0.010936 -> 0.01093603 recipients:
+ amaury.forgeotdarc |
| 2007年08月26日 22:04:03 | amaury.forgeotdarc | set | spambayes_score: 0.010936 -> 0.010936 messageid: <1188165843.93.0.300230591529.issue1029@psf.upfronthosting.co.za> |
| 2007年08月26日 22:04:03 | amaury.forgeotdarc | link | issue1029 messages |
| 2007年08月26日 22:04:03 | amaury.forgeotdarc | create |
|