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): ...@@ -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
......
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