mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Set correct RFC number. Open input in binary.
This commit is contained in:
parent
ee2373b930
commit
25107deb9f
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue