summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-16 17:49:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-16 17:49:46 (GMT)
commit36c0dbc9be1f21feec2218e3357fbf3a4dded8c1 (patch)
tree2afc78ba8f8465544a0dd628548c42b553ab955f
parent9b0034d04069801d5d8685852754c5c8edc88db7 (diff)
downloadcpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.zip
cpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.tar.gz
cpython-36c0dbc9be1f21feec2218e3357fbf3a4dded8c1.tar.bz2
Avoid some BytesWarnings when running test_imaplib in verbose mode
-rw-r--r--Lib/test/test_imaplib.py4
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')