mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Patch # 1094 by Serge Julien. Fix some bytes/str comparisons.
(Bah, the poplib test didn't catch this.)
This commit is contained in:
parent
19ab2bd1c7
commit
0ec3477989
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ class POP3:
|
||||||
resp = self._getresp()
|
resp = self._getresp()
|
||||||
list = []; octets = 0
|
list = []; octets = 0
|
||||||
line, o = self._getline()
|
line, o = self._getline()
|
||||||
while line != '.':
|
while line != b'.':
|
||||||
if line[:2] == '..':
|
if line[:2] == b'..':
|
||||||
o = o-1
|
o = o-1
|
||||||
line = line[1:]
|
line = line[1:]
|
||||||
octets = octets + o
|
octets = octets + o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue