[issue31677] email.header uses re.IGNORECASE without re.ASCII

INADA Naoki report at bugs.python.org
Tue Oct 3 23:51:53 EDT 2017


INADA Naoki <songofacandy at gmail.com> added the comment:

> 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.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31677>
_______________________________________


More information about the Python-bugs-list mailing list