aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2022-06-12 23:16:04 +0000
committermryouse2022-06-12 23:16:04 +0000
commit471922aa39468cf6d5f9a8904036e5208e7103d5 (patch)
tree82a0a32ef1074773938c42b769f79173486b81bb
parent3667be9e51ac657494f4147f346660008d50cd67 (diff)
string representation should show the actual escaped characters, if applicable
-rw-r--r--structs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/structs.py b/structs.py
index 6dea1d5..c3e344c 100644
--- a/structs.py
+++ b/structs.py
@@ -131,7 +131,7 @@ class String(Literal, T.String):
def __init__(self, value):
super().__init__(value, T.String)
def __str__(self):
- return f'"{self.value}"'
+ return f'"{repr(self.value)[1:-1]}"'
class Type:
def __init__(self, name):