Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ec3477

Browse files
committed
Patch # 1094 by Serge Julien. Fix some bytes/str comparisons.
(Bah, the poplib test didn't catch this.)
1 parent 19ab2bd commit 0ec3477

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/poplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def _getlongresp(self):
134134
resp = self._getresp()
135135
list = []; octets = 0
136136
line, o = self._getline()
137-
while line != '.':
138-
if line[:2] == '..':
137+
while line != b'.':
138+
if line[:2] == b'..':
139139
o = o-1
140140
line = line[1:]
141141
octets = octets + o

0 commit comments

Comments
 (0)