summaryrefslogtreecommitdiffstats
path: root/Lib/poplib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-20 14:46:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-20 14:46:19 (GMT)
commit74a49ac3f5ac3c7a09c691db4888c981a0cb3232 (patch)
treefda01f4cbce74bb51529a4d05d0b954988607932 /Lib/poplib.py
parentd83b7c2df4439b678bf7e372f8c9bbaff2907689 (diff)
downloadcpython-74a49ac3f5ac3c7a09c691db4888c981a0cb3232.zip
cpython-74a49ac3f5ac3c7a09c691db4888c981a0cb3232.tar.gz
cpython-74a49ac3f5ac3c7a09c691db4888c981a0cb3232.tar.bz2
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 8ad9cb7..1224eac 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