diff options
author | Georg Brandl <georg@python.org> | 2007-10-22 16:16:13 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-22 16:16:13 (GMT) |
commit | 6464d471950c6ee109f82597ff70d755c127074f (patch) | |
tree | 6cae509d41f93e28b91405c76e97fea9fb7b4b32 /Tools/i18n | |
parent | b8990aac3a74309d9569fa543f83d754b8aa83d6 (diff) | |
download | cpython-6464d471950c6ee109f82597ff70d755c127074f.zip cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.gz cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.bz2 |
In followup to #1310: Remove more exception indexing.
Diffstat (limited to 'Tools/i18n')
-rwxr-xr-x | Tools/i18n/pygettext.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ def main(): 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() |