This commit is contained in:
luk3yx 2020-07-21 15:20:26 +12:00
parent a0e2158b80
commit ea5ed53b5a
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def _escape_string(x):
yield r'\"'
elif char == 0x5c:
yield r'\\'
elif 0x7f > char > 0x19:
elif 0x7f > char > 0x1f:
yield chr(char)
else:
yield '\\' + str(char).zfill(3)