summaryrefslogtreecommitdiff
path: root/Lib/poplib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-20 16:46:19 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-20 16:46:19 +0200
commit74a49ac3f5ac3c7a09c691db4888c981a0cb3232 (patch)
treefda01f4cbce74bb51529a4d05d0b954988607932 /Lib/poplib.py
parentd83b7c2df4439b678bf7e372f8c9bbaff2907689 (diff)
downloadcpython-git-74a49ac3f5ac3c7a09c691db4888c981a0cb3232.tar.gz
Issue #23681: Fixed Python 2 to 3 poring bugs.
Indexing bytes retiurns an integer, not bytes.
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r--Lib/poplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index 8ad9cb77db..1224eacbef 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -136,7 +136,7 @@ class POP3:
# so only possibilities are ...LF, ...CRLF, CR...LF
if line[-2:] == CRLF:
return line[:-2], octets
- if line[0] == CR:
+ if line[:1] == CR:
return line[1:-1], octets
return line[:-1], octets