Open the output files with 'wb', not 'w'.

This commit is contained in:
Guido van Rossum 1997-05-15 18:25:29 +00:00
parent fdf58fe59a
commit 1ade44cb0c

View file

@ -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