Kaydet (Commit) 25107deb authored tarafından Guido van Rossum's avatar Guido van Rossum

Set correct RFC number. Open input in binary.

üst ee2373b9
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Conversions to/from base64 transport encoding as per RFC-MIME (Dec 1991 # Conversions to/from base64 transport encoding as per RFC-MIME (Dec 1991
# version). # version).
# Parameters set by RFX-XXXX. # Parameters set by RFX-1421.
# #
# Modified 04-Oct-95 by Jack to use binascii module # Modified 04-Oct-95 by Jack to use binascii module
...@@ -66,7 +66,7 @@ def test(): ...@@ -66,7 +66,7 @@ def test():
if o == '-u': func = decode if o == '-u': func = decode
if o == '-t': test1(); return if o == '-t': test1(); return
if args and args[0] != '-': if args and args[0] != '-':
func(open(args[0]), sys.stdout) func(open(args[0], 'rb'), sys.stdout)
else: else:
func(sys.stdin, sys.stdout) func(sys.stdin, sys.stdout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment