[issue31677] email.header uses re.IGNORECASE without re.ASCII
Barry A. Warsaw
report at bugs.python.org
Wed Oct 4 10:07:33 EDT 2017
Barry A. Warsaw <barry at python.org> added the comment:
On Oct 3, 2017, at 23:51, INADA Naoki <report at bugs.python.org> wrote:
>> It's better to keep the re.IGNORECASE since the RFC also says:
>>
>> Both 'encoding' and 'charset' names are case-independent. Thus the
>> charset name "ISO-8859-1" is equivalent to "iso-8859-1", and the
>> encoding named "Q" may be spelled either "Q" or "q".
>
> I'm sorry, I've committed before reading this.
> But I think it's not problem, because re.IGNORECASE doesn't affect to
> "(?P<charset>[^?]*?)" pattern.
I think you’re change is fine, no need to revert or modify it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31677>
_______________________________________
More information about the Python-bugs-list
mailing list