Skip to content

Commit 286e9d1

Browse files
committed
Made ifc.py compatible with python2
1 parent d4e4ca3 commit 286e9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ifcwrap/ifc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
if hasattr(functools, 'reduce'): reduce = functools.reduce
66

7-
class entity_instance:
7+
class entity_instance(object):
88
def __init__(self, e):
9-
super().__setattr__('wrapped_data', e)
9+
super(entity_instance,self).__setattr__('wrapped_data', e)
1010
def __getattr__(self, name):
1111
try: return entity_instance.wrap_value(self.wrapped_data.get_argument(self.wrapped_data.get_argument_index(name)))
1212
except:

0 commit comments

Comments
 (0)