summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-22 16:16:13 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-22 16:16:13 (GMT)
commit6464d471950c6ee109f82597ff70d755c127074f (patch)
tree6cae509d41f93e28b91405c76e97fea9fb7b4b32 /Tools
parentb8990aac3a74309d9569fa543f83d754b8aa83d6 (diff)
downloadcpython-6464d471950c6ee109f82597ff70d755c127074f.zip
cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.gz
cpython-6464d471950c6ee109f82597ff70d755c127074f.tar.bz2
In followup to #1310: Remove more exception indexing.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/i18n/pygettext.py3
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()