Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25107de

Browse files
committed
Set correct RFC number. Open input in binary.
1 parent ee2373b commit 25107de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/base64.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Conversions to/from base64 transport encoding as per RFC-MIME (Dec 1991
44
# version).
55

6-
# Parameters set by RFX-XXXX.
6+
# Parameters set by RFX-1421.
77
#
88
# Modified 04-Oct-95 by Jack to use binascii module
99

@@ -66,7 +66,7 @@ def test():
6666
if o == '-u': func = decode
6767
if o == '-t': test1(); return
6868
if args and args[0] != '-':
69-
func(open(args[0]), sys.stdout)
69+
func(open(args[0], 'rb'), sys.stdout)
7070
else:
7171
func(sys.stdin, sys.stdout)
7272

0 commit comments

Comments
 (0)