diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-16 17:49:46 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-16 17:49:46 (GMT) |
commit | 36c0dbc9be1f21feec2218e3357fbf3a4dded8c1 (patch) | |
tree | 2afc78ba8f8465544a0dd628548c42b553ab955f /Lib/test/test_imaplib.py | |
parent | 9b0034d04069801d5d8685852754c5c8edc88db7 (diff) | |
download | cpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.zip cpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.tar.gz cpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.tar.bz2 |
Avoid some BytesWarnings when running test_imaplib in verbose mode
Diffstat (limited to 'Lib/test/test_imaplib.py')
-rw-r--r-- | Lib/test/test_imaplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index 9bae65a..6b44490 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -60,7 +60,7 @@ class SimpleIMAPHandler(socketserver.StreamRequestHandler): timeout = 1 def _send(self, message): - if verbose: print("SENT:", message.strip()) + if verbose: print("SENT: %r" % message.strip()) self.wfile.write(message) def handle(self): @@ -84,7 +84,7 @@ class SimpleIMAPHandler(socketserver.StreamRequestHandler): if line.endswith(b'\r\n'): break - if verbose: print('GOT:', line.strip()) + if verbose: print('GOT: %r' % line.strip()) splitline = line.split() tag = splitline[0].decode('ASCII') cmd = splitline[1].decode('ASCII') |