summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-09-10 00:27:13 (GMT)
committerGuido van Rossum <guido@python.org>2007-09-10 00:27:13 (GMT)
commit0ec3477989484943a230e46aaea60cb20c9ef89f (patch)
tree8f3e5d2d1b21c02fd0bcfe7ddcf8cc81b7757370
parent19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d (diff)
downloadcpython-0ec3477989484943a230e46aaea60cb20c9ef89f.zip
cpython-0ec3477989484943a230e46aaea60cb20c9ef89f.tar.gz
cpython-0ec3477989484943a230e46aaea60cb20c9ef89f.tar.bz2
Patch # 1094 by Serge Julien. Fix some bytes/str comparisons.
(Bah, the poplib test didn't catch this.)
-rw-r--r--Lib/poplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index 323d915..b50b0c7 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -134,8 +134,8 @@ class POP3:
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