Fix bug in command line handling, noted by Fredrik Lundh.

This commit is contained in:
Fred Drake 2002-04-05 18:09:22 +00:00
parent e03e1fe5cc
commit d15a0a05d3
1 changed files with 1 additions and 1 deletions

View File

@ -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])