Airframe config parser: Move to combined elif statement

This commit is contained in:
Lorenz Meier 2015-07-29 21:22:41 +02:00
parent 63901a2cde
commit a0b792792f

View File

@ -241,9 +241,9 @@ class SourceParser(object):
for tag in tags:
if tag == "maintainer":
maintainer = tags[tag]
if tag == "type":
elif tag == "type":
airframe_type = tags[tag]
if tag == "name":
elif tag == "name":
airframe_name = tags[tag]
elif tag not in self.valid_tags:
sys.stderr.write("Aborting due to invalid documentation tag: '%s'\n" % tag)