Barry A. Warsaw <ba...@python.org> added the comment: I think using re.ASCII is a good addition since RFC 2047 says:
Generally, an "encoded-word" is a sequence of printable ASCII characters that begins with "=?", ends with "?=", and has two "?"s in between. It specifies a character set and an encoding method, and also includes the original text encoded as graphic ASCII characters, according to the rules for that encoding method. 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". ---------- nosy: +barry _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com