From: Fred Drake Date: Fri, 5 Apr 2002 18:09:22 +0000 (+0000) Subject: Fix bug in command line handling, noted by Fredrik Lundh. X-Git-Tag: v2.3c1~6111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d15a0a05d3161930928355e0b89091994bc54ee5;p=python Fix bug in command line handling, noted by Fredrik Lundh. --- diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index 5bfc7484e0..38b6e49e8c 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -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])