[Python-checkins] r86484 - python/branches/py3k/Lib/test/test_imaplib.py
antoine.pitrou
python-checkins at python.org
Tue Nov 16 18:49:46 CET 2010
Author: antoine.pitrou
Date: Tue Nov 16 18:49:46 2010
New Revision: 86484
Log:
Avoid some BytesWarnings when running test_imaplib in verbose mode
Modified:
python/branches/py3k/Lib/test/test_imaplib.py
Modified: python/branches/py3k/Lib/test/test_imaplib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_imaplib.py (original)
+++ python/branches/py3k/Lib/test/test_imaplib.py Tue Nov 16 18:49:46 2010
@@ -60,7 +60,7 @@
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 @@
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')
More information about the Python-checkins
mailing list