From 471922aa39468cf6d5f9a8904036e5208e7103d5 Mon Sep 17 00:00:00 2001 From: mryouse Date: Sun, 12 Jun 2022 23:16:04 +0000 Subject: string representation should show the actual escaped characters, if applicable --- structs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'structs.py') 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): -- cgit v1.2.3