]> granicus.if.org Git - python/commitdiff
Fix bug in command line handling, noted by Fredrik Lundh.
authorFred Drake <fdrake@acm.org>
Fri, 5 Apr 2002 18:09:22 +0000 (18:09 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 5 Apr 2002 18:09:22 +0000 (18:09 +0000)
Doc/tools/sgmlconv/latex2esis.py

index 5bfc7484e0d2aafe306b2a6b7b05e6351232cea1..38b6e49e8cf9d24abbe3c31a52551abfe50ff025 100755 (executable)
@@ -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])