From f705441fac26b6964c4ac5ab4e0ed9b854ae3eb1 Mon Sep 17 00:00:00 2001 From: Markus Mirz Date: Sat, 18 Jan 2025 19:34:59 +0100 Subject: [PATCH] fix recursion error when printing python object Signed-off-by: Markus Mirz --- cimgen/languages/python/templates/cimpy_class_template.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cimgen/languages/python/templates/cimpy_class_template.mustache b/cimgen/languages/python/templates/cimpy_class_template.mustache index d2af5e5..cc5e3c5 100644 --- a/cimgen/languages/python/templates/cimpy_class_template.mustache +++ b/cimgen/languages/python/templates/cimpy_class_template.mustache @@ -42,5 +42,5 @@ class {{class_name}}({{subclass_of}}): str = "class={{class_name}}\n" attributes = self.__dict__ for key in attributes.keys(): - str = str + key + "={}\n".format(attributes[key]) + str = str + key + "={}\n".format(repr(attributes[key])) return str