# point
if is_point:
properties = {'type': feature.tag}
- allowed_properties = set(['name', 'wiki'])
+ allowed_properties = {'name', 'wiki'}
wrong_properties = set(feature.attrib.keys()) - allowed_properties
if len(wrong_properties) > 0:
raise ParseError("The attribute '{}' is not allowed at <{}>.".format(list(wrong_properties)[0], feature.tag))
# line
if is_line:
properties = {'type': feature.tag}
- allowed_properties = set(['farbe', 'dicke'])
+ allowed_properties = {'farbe', 'dicke'}
wrong_properties = set(feature.attrib.keys()) - allowed_properties
if len(wrong_properties) > 0:
raise ParseError("The attribute '{}' is not allowed at <{}>.".format(list(wrong_properties)[0], feature.tag))