git_dag.utils.escape_decode¶
- git_dag.utils.escape_decode(text: str) str [source]¶
Decode escapes of escapes (e.g.,
\\n -> \n
).Note¶
The approach in https://stackoverflow.com/a/37059682 is used because it handles unicode characters. FIXME: unfortunately, it relies on the internal function
codecs.escape_decode
(https://github.com/python/cpython/issues/74773).