diff options
Diffstat (limited to 'libpathod/utils.py')
| -rw-r--r-- | libpathod/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpathod/utils.py b/libpathod/utils.py index 40f37cab..1ee50b83 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -41,6 +41,10 @@ def parse_anchor_spec(s): return tuple(s.split("=", 1)) +def xrepr(s): + return repr(s)[1:-1] + + def escape_unprintables(s): s = s.replace("\r\n", "PATHOD_MARKER_RN") s = s.replace("\n", "PATHOD_MARKER_N") |
