diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-06 15:16:04 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-07-06 15:16:04 (GMT) |
commit | 2a99d5df63395149ef7393ef5e8a4fb141f64b55 (patch) | |
tree | 92e5ee63defe15d2cc6aca24b1232e04666e0326 /Lib/email | |
parent | 5f3fef37f629f9e98f5e83558795ab31d73e437a (diff) | |
download | cpython-2a99d5df63395149ef7393ef5e8a4fb141f64b55.zip cpython-2a99d5df63395149ef7393ef5e8a4fb141f64b55.tar.gz cpython-2a99d5df63395149ef7393ef5e8a4fb141f64b55.tar.bz2 |
#18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/quoprimime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py index 78638d5..bc02281 100644 --- a/Lib/email/quoprimime.py +++ b/Lib/email/quoprimime.py @@ -319,4 +319,4 @@ def header_decode(s): the high level email.header class for that functionality. """ s = s.replace('_', ' ') - return re.sub(r'=[a-fA-F0-9]{2}', _unquote_match, s, re.ASCII) + return re.sub(r'=[a-fA-F0-9]{2}', _unquote_match, s, flags=re.ASCII) |