mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Open the output files with 'wb', not 'w'.
This commit is contained in:
parent
fdf58fe59a
commit
1ade44cb0c
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ def mirrorsubdir(f, localdir):
|
|||
except os.error:
|
||||
pass
|
||||
try:
|
||||
fp = open(tempname, 'w')
|
||||
fp = open(tempname, 'wb')
|
||||
except IOError, msg:
|
||||
print "Can't create %s: %s" % (tempname, str(msg))
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue