diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 00:00:55 +1200 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-24 00:00:55 +1200 |
| commit | 2dd2137d44d0bc7e3e25d4ce14610acfe88cb4f2 (patch) | |
| tree | 97c49e177c3913adf7ef4fbba73f999c01d20ca3 /libpathod/utils.py | |
| parent | a950a4d7a3097685d54f325f32a169034e9435f1 (diff) | |
| download | mitmproxy-2dd2137d44d0bc7e3e25d4ce14610acfe88cb4f2.tar.gz mitmproxy-2dd2137d44d0bc7e3e25d4ce14610acfe88cb4f2.tar.bz2 mitmproxy-2dd2137d44d0bc7e3e25d4ce14610acfe88cb4f2.zip | |
Better handling of binary data output by pathoc.
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") |
