Mercurial > cpython-lru_cache-weakref
diff Lib/tempfile.py @ 42580:5aeb261de0bd
Patch suggested Paul Colomiets fixes test_threaded_import.py.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 13 Aug 2007 19:06:38 +0000 |
| parents | 49d51c1fc177 |
| children | 48a31b0bf501 |
line wrap: on
line diff
--- a/Lib/tempfile.py Mon Aug 13 18:43:36 2007 +0000 +++ b/Lib/tempfile.py Mon Aug 13 19:06:38 2007 +0000 @@ -197,8 +197,8 @@ filename = _os.path.join(dir, name) try: fd = _os.open(filename, flags, 0o600) - fp = _io.open(fd, 'w') - fp.write('blat') + fp = _io.open(fd, 'wb') + fp.write(b'blat') fp.close() _os.unlink(filename) del fp, fd
