diff options
author | Guido van Rossum <guido@python.org> | 1997-05-15 18:25:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-15 18:25:29 (GMT) |
commit | 1ade44cb0c6b091e008623ca307fdefeb184dfe7 (patch) | |
tree | f05a50d9327d67603456710f64a3b36ceb38ae54 /Tools | |
parent | fdf58fe59a94b66ad9951bb64eedd90521ba72eb (diff) | |
download | cpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.zip cpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.tar.gz cpython-1ade44cb0c6b091e008623ca307fdefeb184dfe7.tar.bz2 |
Open the output files with 'wb', not 'w'.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/ftpmirror.py | 2 |
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 |