]> granicus.if.org Git - python/commit
bpo-31677: email: Remove re.IGNORECASE flag (GH-3868)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 4 Oct 2017 03:47:38 +0000 (12:47 +0900)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2017 03:47:38 +0000 (12:47 +0900)
commitbf477a99e0c85258e6573f4ee9eda68fa1f98a31
tree89ada028feed7b97887303b872c7ddd5d1b8e9c4
parente2d0dd2cf98cfa558435693b9f066edd7cf7d71a
bpo-31677: email: Remove re.IGNORECASE flag (GH-3868)

While there is not real bug in this case, using re.IGNORECASE without re.ASCII
leads unexpected behavior.
Instead of adding re.ASCII, this commit removes re.IGNORECASE flag because
it's easier and simpler.

This commit removes dead copy of the pattern in email.util module too.
While the pattern is same, it is compiled separately because it had different flags.
Lib/email/header.py
Lib/email/utils.py