Patch suggested Paul Colomiets fixes test_threaded_import.py.

This commit is contained in:
Guido van Rossum 2007-08-13 19:06:38 +00:00
parent fc9ba9318f
commit 5424df2f7e
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ def _get_default_tempdir():
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