summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-08 23:10:42 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-08 23:10:42 (GMT)
commit25107deb9f5bd766ba9f3fe4870db0d74bcca82e (patch)
treefefe748287b92d67943bc6f9f00e3f4d0f1752b6 /Lib
parentee2373b930fb6d994e2f0ea2cfbb5753da4fba4e (diff)
downloadcpython-25107deb9f5bd766ba9f3fe4870db0d74bcca82e.zip
cpython-25107deb9f5bd766ba9f3fe4870db0d74bcca82e.tar.gz
cpython-25107deb9f5bd766ba9f3fe4870db0d74bcca82e.tar.bz2
Set correct RFC number. Open input in binary.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/base64.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index c8363fd..5beed51 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -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)