diff options
author | Georg Brandl <georg@python.org> | 2009-08-13 08:48:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-13 08:48:56 (GMT) |
commit | ef82be368abdea8e8032500e7ecc3a22f5f07851 (patch) | |
tree | a4695506b0660067a66bcb24ffa432c0fdd73b65 /Lib | |
parent | eea0721819e52b66a570a10388aee0ca3b92bab3 (diff) | |
download | cpython-ef82be368abdea8e8032500e7ecc3a22f5f07851.zip cpython-ef82be368abdea8e8032500e7ecc3a22f5f07851.tar.gz cpython-ef82be368abdea8e8032500e7ecc3a22f5f07851.tar.bz2 |
Merged revisions 73695,73711 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
................
r73695 | raymond.hettinger | 2009-06-29 20:30:43 +0200 (Mo, 29 Jun 2009) | 1 line
Issue 6370: Performance issue with collections.Counter().
................
r73711 | benjamin.peterson | 2009-07-01 00:27:25 +0200 (Mi, 01 Jul 2009) | 9 lines
Merged revisions 73710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73710 | benjamin.peterson | 2009-06-30 17:14:33 -0500 (Tue, 30 Jun 2009) | 1 line
provide a dummy __exit__ on windows
........
................
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/tempfile.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 74e3cb2..8cdefaa 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -408,6 +408,9 @@ class _TemporaryFileWrapper: result = self.file.__exit__(exc, value, tb) self.close() return result + else: + def __exit__(self, exc, value, tb): + pass def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None, |