Roundtrip fix: tabs etc in resource names

This commit is contained in:
Elliot Nunn 2018-12-09 13:32:53 +08:00
parent b21a7a4595
commit 57bd293326
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def _rez_escape(src, singlequote=False, ascii_clean=False):
chars = [the_quote]
for ch in src:
if 8 <= ch <= 13:
nu = b'\\' + b'btrvfn'[ch:ch+1]
nu = b'\\' + b'btrvfn'[ch-8:][:1]
elif ch < 32 or (ascii_clean and ch >= 128):
nu = b'\\0x%02X' % ch
elif ch == ord('\\'):