Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mypyc/codegen/cstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

# These assignments must come last because we prioritize simple escape
# sequences over any other representation.
for c in ("'", '"', "\\", "a", "b", "f", "n", "r", "t", "v"):
for c in ("'", '"', "\\", "a", "b", "f", "n", "r", "t", "v", "0"):

escaped = f"\\{c}"
decoded = escaped.encode("ascii").decode("unicode_escape")
CHAR_MAP[ord(decoded)] = escaped
Expand Down
Loading