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