Author: guido.van.rossum
Date: Mon Sep 10 02:27:13 2007
New Revision: 58072
Modified:
python/branches/py3k/Lib/poplib.py
Log:
Patch # 1094 by Serge Julien. Fix some bytes/str comparisons.
(Bah, the poplib test didn't catch this.)
Modified: python/branches/py3k/Lib/poplib.py
==============================================================================
--- python/branches/py3k/Lib/poplib.py (original)
+++ python/branches/py3k/Lib/poplib.py Mon Sep 10 02:27:13 2007
@@ -134,8 +134,8 @@
resp = self._getresp()
list = []; octets = 0
line, o = self._getline()
- while line != '.':
- if line[:2] == '..':
+ while line != b'.':
+ if line[:2] == b'..':
o = o-1
line = line[1:]
octets = octets + o
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins