Skip to content

Commit

Permalink
chore[venom]: fix output formatting of data segment in IRContext (#…
Browse files Browse the repository at this point in the history
…4016)

The data segment output from `IRContext` was printing one character per
line. this commit fixes it.
  • Loading branch information
harkal committed May 13, 2024
1 parent 120b7d5 commit ea1e4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/venom/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def __repr__(self) -> str:
s.append("\n")

if len(self.data_segment) > 0:
s += "\nData segment:\n"
s.append("\nData segment:")
for inst in self.data_segment:
s += f"{inst}\n"
s.append(f"{inst}")

return "\n".join(s)

0 comments on commit ea1e4ea

Please sign in to comment.