From: Guido van Rossum Date: Thu, 15 May 1997 18:25:29 +0000 (+0000) Subject: Open the output files with 'wb', not 'w'. X-Git-Tag: v1.5a3~546 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ade44cb0c6b091e008623ca307fdefeb184dfe7;p=python Open the output files with 'wb', not 'w'. --- diff --git a/Tools/scripts/ftpmirror.py b/Tools/scripts/ftpmirror.py index 7878847909..11b618f751 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