diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-12 01:13:54 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-12 01:13:54 (GMT) |
commit | 3ade6f9007d72adaad0979721b2f39303c71618f (patch) | |
tree | 5ca7b2540fe198e14c0129c6231f163202fe524d /Lib/tempfile.py | |
parent | 3c415a26e3002ef1219c8b5a8798d35180653c35 (diff) | |
download | cpython-3ade6f9007d72adaad0979721b2f39303c71618f.zip cpython-3ade6f9007d72adaad0979721b2f39303c71618f.tar.gz cpython-3ade6f9007d72adaad0979721b2f39303c71618f.tar.bz2 |
Fixed test_tempfile.
Added the encoding, errors, line_buffering attribute to io.StringIO
make more compatible with TextIOWrapper's API.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r-- | Lib/tempfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 2caa56a..74e3cb2 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -502,7 +502,7 @@ class SpooledTemporaryFile: # Setting newline="\n" avoids newline translation; # this is important because otherwise on Windows we'd # hget double newline translation upon rollover(). - self._file = _io.StringIO(encoding=encoding, newline="\n") + self._file = _io.StringIO(newline="\n") self._max_size = max_size self._rolled = False self._TemporaryFileArgs = {'mode': mode, 'buffering': buffering, |