mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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:
|
except os.error:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
fp = open(tempname, 'w')
|
fp = open(tempname, 'wb')
|
||||||
except IOError, msg:
|
except IOError, msg:
|
||||||
print "Can't create %s: %s" % (tempname, str(msg))
|
print "Can't create %s: %s" % (tempname, str(msg))
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue