Fix syntax for py27

This commit is contained in:
Thomas Krijnen
2021-01-09 14:25:26 +01:00
committed by GitHub
parent 2a54fee41a
commit 6976144d80
@@ -63,7 +63,7 @@ def open(fn):
raise IOError("Unable to open file for reading")
def create_entity(type, *args, schema='IFC4', **kwargs):
def create_entity(type, schema='IFC4', *args, **kwargs):
e = entity_instance((schema, type))
attrs = list(enumerate(args)) + [(e.wrapped_data.get_argument_index(name), arg) for name, arg in kwargs.items()]
for idx, arg in attrs: