Shut wmllint up about a place qhere it shouldn't be complaining.

This commit is contained in:
Eric S. Raymond 2008-12-07 22:42:17 +00:00
parent 471de07154
commit 63a48bfeb7

View file

@ -162,7 +162,7 @@ def validate_on_pop(tagstack, closer, filename, lineno):
print '"%s", line %d: closing %s I see %s with %s' % (filename, lineno, closer, tag, attributes)
# Detect a malformation that will cause the game to barf while attempting
# to deserialize an empty unit.
if closer == "side" and "type" not in attributes and ("no_leader" not in attributes or attributes["no_leader"] != "yes") and "multiplayer" not in ancestors:
if "scenario" in ancestors and closer == "side" and "type" not in attributes and ("no_leader" not in attributes or attributes["no_leader"] != "yes") and "multiplayer" not in ancestors:
print '"%s", line %d: [side] without type attribute' % (filename, lineno)
# This assumes that conversion will always happen in units/ files.
if "units" not in filename and closer == "unit" and "race" in attributes: