Martin Panter added the comment:

The implementation has been fixed for Issue 23681 to slice instead of index, 
and now compares byte strings:

>>> import quopri
>>> quopri.decodestring(b"123==four")
b'123=four'
>>> quopri.a2b_qp = None
>>> quopri.decodestring(b"123==four")
b'123=four'

However, I think a test still needs to be written to cover this branch of the 
code.

----------
nosy: +vadmium
title: Thinko in Lib/quopri.py -> Thinko in Lib/quopri.py, decoding b"==" to 
b"="

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to