summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-15 18:25:29 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-15 18:25:29 (GMT)
commit1ade44cb0c6b091e008623ca307fdefeb184dfe7 (patch)
treef05a50d9327d67603456710f64a3b36ceb38ae54 /Tools
parentfdf58fe59a94b66ad9951bb64eedd90521ba72eb (diff)
downloadcpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.zip
cpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.tar.gz
cpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.tar.bz2
Open the output files with 'wb', not 'w'.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/ftpmirror.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py
index 7878847..11b618f 100755
--- a/Tools/scripts/ftpmirror.py
+++ b/Tools/scripts/ftpmirror.py
@@ -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