From 286e9d183a5b2d77a245bca69b23666752f06355 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 20 Jul 2014 12:43:10 -0300 Subject: [PATCH] Made ifc.py compatible with python2 --- src/ifcwrap/ifc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcwrap/ifc.py b/src/ifcwrap/ifc.py index 18439632d7..72837b2ea0 100644 --- a/src/ifcwrap/ifc.py +++ b/src/ifcwrap/ifc.py @@ -4,9 +4,9 @@ import ifc_wrapper if hasattr(functools, 'reduce'): reduce = functools.reduce -class entity_instance: +class entity_instance(object): def __init__(self, e): - super().__setattr__('wrapped_data', e) + super(entity_instance,self).__setattr__('wrapped_data', e) def __getattr__(self, name): try: return entity_instance.wrap_value(self.wrapped_data.get_argument(self.wrapped_data.get_argument_index(name))) except: