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 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.
Files
File name Uploaded
tempfile-newline-encoding.patch hupp, 2007-08-27.00:10:44
History
Date User Action Args
2007-08-27 00:10:44huppsetspambayes_score: 0.0112517 -> 0.011251716
recipients: + hupp
2007-08-27 00:10:44huppsetspambayes_score: 0.0112517 -> 0.0112517
messageid: <1188173444.49.0.820359174757.issue1033@psf.upfronthosting.co.za>
2007-08-27 00:10:44hupplinkissue1033 messages
2007-08-27 00:10:44huppcreate