commit | 6464d471950c6ee109f82597ff70d755c127074f | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Oct 22 16:16:13 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Mon Oct 22 16:16:13 2007 +0000 |
tree | 6cae509d41f93e28b91405c76e97fea9fb7b4b32 | |
parent | b8990aac3a74309d9569fa543f83d754b8aa83d6 [diff] [blame] |
In followup to #1310: Remove more exception indexing.
diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index cc25239..839846e 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py
@@ -637,7 +637,8 @@ tokenize.tokenize(fp.readline, eater) except tokenize.TokenError as e: print('%s: %s, line %d, column %d' % ( - e[0], filename, e[1][0], e[1][1]), file=sys.stderr) + e.args[0], filename, e.args[1][0], e.args[1][1]), + file=sys.stderr) finally: if closep: fp.close()