Message94888
| Author |
shamilbi |
| Recipients |
shamilbi |
| Date |
2009年11月04日.14:13:28 |
| SpamBayes Score |
0.01775378 |
| Marked as misclassified |
No |
| Message-id |
<1257344010.52.0.739143662559.issue7262@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
different eol when writing to fp = codecs.open(.., 'w', 'cp866')
(windows, python-2.6.4)
def write(fp):
fp.write("""\
a
""")
# eol=0d0a (windows, python-2.6.4)
with open('0d0a.tmp', 'w') as fp:
write(fp)
# eol=0d0a (windows, python-2.6.4)
with codecs.open('0d0a-codecs.tmp', 'w') as fp:
write(fp)
# --- BUG ---
# eol=0a (windows, python-2.6.4)
with codecs.open('0a-codecs.tmp', 'w', 'cp866') as fp:
write(fp) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年11月04日 14:13:30 | shamilbi | set | recipients:
+ shamilbi |
| 2009年11月04日 14:13:30 | shamilbi | set | messageid: <1257344010.52.0.739143662559.issue7262@psf.upfronthosting.co.za> |
| 2009年11月04日 14:13:29 | shamilbi | link | issue7262 messages |
| 2009年11月04日 14:13:29 | shamilbi | create |
|