Shut wmllint up about a place qhere it shouldn't be complaining.
This commit is contained in:
parent
471de07154
commit
63a48bfeb7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue