Commit 0ec34779 authored by Guido van Rossum's avatar Guido van Rossum

Patch # 1094 by Serge Julien. Fix some bytes/str comparisons.

(Bah, the poplib test didn't catch this.)
parent 19ab2bd1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment