fix # wmllint: deathcheck off directive being ignored in some cases

This commit is contained in:
Anonymissimus 2012-08-19 22:42:02 +00:00
parent a1e5070ab6
commit b7ccb8091b

View file

@ -1020,7 +1020,7 @@ def global_sanity_check(filename, lines):
if fields:
(key, prefix, value, comment) = fields
if key in ("id", "speaker"):
if deathcheck and (value == filter_subject) or (value == "unit"):
if deathcheck and ((value == filter_subject) or (value == "unit")):
print '"%s", line %d: %s speaks in his/her death event' % (filename, nav.lineno+1, value)
# Collect information on defined movement types and races
for nav in WmllintIterator(lines, filename):