diff --git a/pytato/stringifier.py b/pytato/stringifier.py index 4f39713cf..7f061d6bb 100644 --- a/pytato/stringifier.py +++ b/pytato/stringifier.py @@ -158,7 +158,7 @@ def map_data_wrapper(self, expr: DataWrapper, depth: int) -> str: def _get_field_val(field: str) -> str: if field == "data": - return object.__repr__(expr.data) + return repr(expr.data) else: return self.rec(getattr(expr, field), depth+1) @@ -207,7 +207,7 @@ def map_loopy_call(self, expr: LoopyCall, depth: int) -> str: def _get_field_val(field: str) -> str: if field == "translation_unit": - return object.__repr__(expr.translation_unit) + return repr(expr.translation_unit) else: return self.rec(getattr(expr, field), depth+1)