Skip to content

Commit

Permalink
Reprifier: improve DataWrapper, LoopyCall
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored and inducer committed Sep 18, 2024
1 parent 850dcb4 commit 3731ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytato/stringifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 3731ce5

Please sign in to comment.