summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-01-07 14:11:59 +0000
committerGerrit Code Review <review@openstack.org>2014-01-07 14:11:59 +0000
commit9ebb84c04fa9b7e2bc42104a1e4ad66168a11089 (patch)
tree2f0f5b06fa2ca2f3af1f41e58848914341662859 /tools
parent59c078f83af30bb70a62e295d98ec2796cd6bf89 (diff)
parentf778931252fbee34980e32289e96534eebb89c2b (diff)
downloadneutron-9ebb84c04fa9b7e2bc42104a1e4ad66168a11089.tar.gz
Merge "Corrects broken format strings in check_i18n.py"
Diffstat (limited to 'tools')
-rw-r--r--tools/check_i18n.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/check_i18n.py b/tools/check_i18n.py
index 86207b80b4..f9b31ebda3 100644
--- a/tools/check_i18n.py
+++ b/tools/check_i18n.py
@@ -59,7 +59,8 @@ class Visitor(object):
if checker(node):
print('%s:%d %s: %s Error: %s' %
(self.filename, node.lineno,
- self.lines[node.lineno - 1][:-1], msg),
+ self.lines[node.lineno - 1][:-1],
+ checker.__name__, msg),
file=sys.stderr)
self.error = 1
return
@@ -81,7 +82,8 @@ class Visitor(object):
elif action == 'error':
print('%s:%d %s: %s Error: %s' %
(self.filename, node.lineno,
- self.lines[node.lineno - 1][:-1], msg),
+ self.lines[node.lineno - 1][:-1],
+ predicate.__name__, msg),
file=sys.stderr)
self.error = 1
return