diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-27 10:59:46 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-27 10:59:46 +1200 |
commit | 064b4c80018d9b76c2bedc010ab45c8b9ea7faa3 (patch) | |
tree | 4b54d43f8673c914e493fd97a73c4fc013bfa1d4 /netlib | |
parent | b308824193342c11c88b8bad2645a5b09efcf48f (diff) | |
download | mitmproxy-064b4c80018d9b76c2bedc010ab45c8b9ea7faa3.tar.gz mitmproxy-064b4c80018d9b76c2bedc010ab45c8b9ea7faa3.tar.bz2 mitmproxy-064b4c80018d9b76c2bedc010ab45c8b9ea7faa3.zip |
Make cleanBin escape carriage returns.
We get confusing output on terminals if we leave \r unescaped.
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/utils.py b/netlib/utils.py index ea749545..7621a1dc 100644 --- a/netlib/utils.py +++ b/netlib/utils.py @@ -10,7 +10,7 @@ def cleanBin(s, fixspacing=False): o = ord(i) if (o > 31 and o < 127): parts.append(i) - elif i in "\n\r\t" and not fixspacing: + elif i in "\n\t" and not fixspacing: parts.append(i) else: parts.append(".") |