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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d15a0a05d3161930928355e0b89091994bc54ee5;p=thirdparty%2FPython%2Fcpython.git 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 5bfc7484e0d2..38b6e49e8cf9 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])