Skip to content

Commit

Permalink
switch unescape method
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Aug 4, 2024
1 parent 3b8e892 commit 92afe86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rechunk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ def argparse_func():
continue
idx = line.index("=")
# FIXME: dirty hack to undo escapes
formatters[line[:idx]] = line[idx + 1 :].encode('utf-8').decode('unicode_escape')
formatters[line[:idx]] = (
line[idx + 1 :]
.replace("\\n", "\n")
.replace("\\t", "\t")
.replace("\\r", "\r")
)

alg_main(
repo=args.repo,
Expand Down

0 comments on commit 92afe86

Please sign in to comment.