Commit 1ade44cb authored by Guido van Rossum's avatar Guido van Rossum

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

parent fdf58fe5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment