Fix use of codecs.escape_decode()

This commit is contained in:
Toshio Kuratomi 2015-05-17 09:28:14 -07:00
parent 94246003d5
commit 4b44aa4799

View file

@ -376,7 +376,7 @@ def main():
if backrefs: if backrefs:
line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line) line = re.sub(r'(\\[0-9]{1,3})', r'\\\1', line)
line = codecs.escape_decode(line) line = codecs.escape_decode(line)[0]
present(module, dest, params['regexp'], line, present(module, dest, params['regexp'], line,
ins_aft, ins_bef, create, backup, backrefs) ins_aft, ins_bef, create, backup, backrefs)