Author: guido.van.rossum
Date: Mon Aug 13 21:06:38 2007
New Revision: 56989

Modified:
   python/branches/py3k/Lib/tempfile.py
Log:
Patch suggested Paul Colomiets fixes test_threaded_import.py.


Modified: python/branches/py3k/Lib/tempfile.py
==============================================================================
--- python/branches/py3k/Lib/tempfile.py        (original)
+++ python/branches/py3k/Lib/tempfile.py        Mon Aug 13 21:06:38 2007
@@ -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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to