fix # wmllint: deathcheck off directive being ignored in some cases
This commit is contained in:
parent
a1e5070ab6
commit
b7ccb8091b
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue