From: Guido van Rossum Date: Mon, 10 Sep 2007 00:27:13 +0000 (+0000) Subject: Patch # 1094 by Serge Julien. Fix some bytes/str comparisons. X-Git-Tag: v3.0a2~411 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ec3477989484943a230e46aaea60cb20c9ef89f;p=python Patch # 1094 by Serge Julien. Fix some bytes/str comparisons. (Bah, the poplib test didn't catch this.) --- diff --git a/Lib/poplib.py b/Lib/poplib.py index 323d915e1b..b50b0c79db 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