Python settings.__init__ and settings.__repr__

This commit is contained in:
Thomas Krijnen
2020-10-05 15:39:19 +02:00
parent 11657207c2
commit ac40b90f27
+1 -1
View File
@@ -171,7 +171,7 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
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())))
)