From ac40b90f2769d550c153eff13ff23ee5fbd41469 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 5 Oct 2020 15:39:19 +0200 Subject: [PATCH] Python settings.__init__ and settings.__repr__ --- src/ifcwrap/IfcGeomWrapper.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index d2cdbe2b2d..79249cddd1 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -171,7 +171,7 @@ struct ShapeRTTI : public boost::static_visitor if isinstance(v, numbers.Integral): yield x - return "%self(%self)" % ( + return "%s(%s)" % ( type(self).__name__, (", ".join(map(lambda x: "%s = %r" % (x, self.get(getattr(self, x))), d()))) )