Change Ivanovic's test slightly.

This commit is contained in:
Eric S. Raymond 2007-11-10 21:36:47 +00:00
parent 251d75bef4
commit d3bbac3603

View file

@ -1509,7 +1509,7 @@ if __name__ == '__main__':
transformed = old.sub(new, transformed)
# Check for things marked translated that aren't strings
if "_" in transformed and not "wmllint: ignore" in transformed:
m = re.search(r'[=(]\s*_\s*("?)', transformed)
m = re.search(r'[=(]\s*_\s+("?)', transformed)
if m and not m.group(1):
msg = '"%s", line %d: translatability mark before non-string' % \
(filename, lineno)