From 064b4c80018d9b76c2bedc010ab45c8b9ea7faa3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 27 Sep 2012 10:59:46 +1200 Subject: [PATCH] Make cleanBin escape carriage returns. We get confusing output on terminals if we leave \r unescaped. --- netlib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlib/utils.py b/netlib/utils.py index ea7495451..7621a1dc0 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(".")