Message55328
| Author |
hupp |
| Recipients |
hupp |
| Date |
2007年08月27日.00:10:44 |
| SpamBayes Score |
0.011251716 |
| Marked as misclassified |
No |
| Message-id |
<1188173444.49.0.820359174757.issue1033@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It would be useful for tempfile.TemporaryFile and friends to pass
newline and encoding arguments to the underlying io.open call. For
example, several tests in test_csv use TemporaryFile and need to handle
unicode file output or preserve exact newlines. This is simpler with
direct support in TemporaryFile.
The attached patch makes the following changes:
1) tempfile.TemporaryFile, NamedTemporaryFile, and SpooledTemporaryFile
now pass newline and encoding to the underlying io.open call.
2) test_tempfile is updated
3) test_csv is updated to use the new arguments. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月27日 00:10:44 | hupp | set | spambayes_score: 0.0112517 -> 0.011251716 recipients:
+ hupp |
| 2007年08月27日 00:10:44 | hupp | set | spambayes_score: 0.0112517 -> 0.0112517 messageid: <1188173444.49.0.820359174757.issue1033@psf.upfronthosting.co.za> |
| 2007年08月27日 00:10:44 | hupp | link | issue1033 messages |
| 2007年08月27日 00:10:44 | hupp | create |
|