]> granicus.if.org Git - python/commitdiff
Open the output files with 'wb', not 'w'.
authorGuido van Rossum <guido@python.org>
Thu, 15 May 1997 18:25:29 +0000 (18:25 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 15 May 1997 18:25:29 +0000 (18:25 +0000)
Tools/scripts/ftpmirror.py

index 787884790929da21701b7ed12851f19ef3e5c03c..11b618f751d2cb5ec4580b1aff3cad61819cfbac 100755 (executable)
@@ -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