Escape backslashes when stringifying.
This commit is contained in:
parent
ee4914fa63
commit
05b009a7c6
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ class ExpressionTree:
|
||||||
|
|
||||||
if self_token not in OPERATORS:
|
if self_token not in OPERATORS:
|
||||||
t = self_token
|
t = self_token
|
||||||
|
t = t.replace('\\', '\\\\')
|
||||||
t = t.replace('"', '\\"')
|
t = t.replace('"', '\\"')
|
||||||
t = t.replace('(', '\\(')
|
t = t.replace('(', '\\(')
|
||||||
t = t.replace(')', '\\)')
|
t = t.replace(')', '\\)')
|
||||||
|
|
Loading…
Reference in a new issue