From f3fe23ef31734e4e58d7b8444fc8343f1553c3a5 Mon Sep 17 00:00:00 2001 From: Lucas <100660343+lulunac27a@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:57:17 -0500 Subject: [PATCH] Fix code error for Python 3 Fix code error that comma after parenthesis is invalid syntax in expect block --- bin/j2py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/j2py b/bin/j2py index 6eb1a40..9023a8e 100755 --- a/bin/j2py +++ b/bin/j2py @@ -110,7 +110,7 @@ def runTransform(options): source = open(filein).read() else: source = sys.stdin.read() - except (IOError, ), exc: + except IOError as exc: code, msg = exc.args[0:2] print 'IOError: %s.' % (msg, ) return code