]> granicus.if.org Git - python/commitdiff
Set correct RFC number. Open input in binary.
authorGuido van Rossum <guido@python.org>
Thu, 8 May 1997 23:10:42 +0000 (23:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 May 1997 23:10:42 +0000 (23:10 +0000)
Lib/base64.py

index c8363fd6efcc5e493be277238b5f051e161306d6..5beed51125d81b11010810e264dcebce6524da4a 100755 (executable)
@@ -3,7 +3,7 @@
 # Conversions to/from base64 transport encoding as per RFC-MIME (Dec 1991
 # version).
 
-# Parameters set by RFX-XXXX.
+# Parameters set by RFX-1421.
 #
 # Modified 04-Oct-95 by Jack to use binascii module
 
@@ -66,7 +66,7 @@ def test():
                if o == '-u': func = decode
                if o == '-t': test1(); return
        if args and args[0] != '-':
-               func(open(args[0]), sys.stdout)
+               func(open(args[0], 'rb'), sys.stdout)
        else:
                func(sys.stdin, sys.stdout)