Browse Source

Merge "Corrects broken format strings in check_i18n.py"

changes/99/62599/5
Jenkins 9 years ago committed by Gerrit Code Review
parent
commit
9ebb84c04f
  1. 6
      tools/check_i18n.py

6
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

Loading…
Cancel
Save