mirror of https://github.com/python/cpython
Fix bug in command line handling, noted by Fredrik Lundh.
This commit is contained in:
parent
e03e1fe5cc
commit
d15a0a05d3
|
@ -548,7 +548,7 @@ def main():
|
|||
ifp = sys.stdin
|
||||
ofp = sys.stdout
|
||||
elif len(args) == 1:
|
||||
ifp = open(args)
|
||||
ifp = open(args[0])
|
||||
ofp = sys.stdout
|
||||
elif len(args) == 2:
|
||||
ifp = open(args[0])
|
||||
|
|
Loading…
Reference in New Issue