Commit f4d2c774 authored by alina's avatar alina

Using %r to print received line in protocol.Client._read_reply(), to print invisible characters.

parent 1007ac13
...@@ -566,7 +566,7 @@ class Client(object): ...@@ -566,7 +566,7 @@ class Client(object):
m = re.search(r'^(\d{3})([ -])(.*)', line) m = re.search(r'^(\d{3})([ -])(.*)', line)
if not m: if not m:
raise RuntimeError("Protocol error, read: %s" % line) raise RuntimeError("Protocol error, read: %r" % line)
status = m.group(1) status = m.group(1)
text.append(m.group(3)) text.append(m.group(3))
if m.group(2) == " ": if m.group(2) == " ":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment