diff options
| author | mryouse | 2022-06-12 23:16:04 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-12 23:16:04 +0000 |
| commit | 471922aa39468cf6d5f9a8904036e5208e7103d5 (patch) | |
| tree | 82a0a32ef1074773938c42b769f79173486b81bb /structs.py | |
| parent | 3667be9e51ac657494f4147f346660008d50cd67 (diff) | |
string representation should show the actual escaped characters, if applicable
Diffstat (limited to 'structs.py')
| -rw-r--r-- | structs.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |
