[issue29020] collapse_rfc2231_value has inconsistent unquoting

bpoaugust report at bugs.python.org
Mon Dec 19 19:30:12 EST 2016


New submission from bpoaugust:

collapse_rfc2231_value unquotes the value before returning it except here:

rawbytes = bytes(text, 'raw-unicode-escape')
return str(rawbytes, charset, errors)

Why is the text not unquoted in this case?

Actually I wonder whether the function should do any unquoting at all.
There is at least one case where it is called with an already unquoted value (get_boundary, see issue28945).

But if it is intended to do unquoting, it should be consistent.

----------
components: email
messages: 283658
nosy: barry, bpoaugust, r.david.murray
priority: normal
severity: normal
status: open
title: collapse_rfc2231_value has inconsistent unquoting
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29020>
_______________________________________


More information about the Python-bugs-list mailing list