Issue 18380: email/quoprimime.py doesn't use re.sub correctly (original) (raw)

Issue18380

Created on 2013-07-06 12:32 by umi, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patch_18380 umi,2013-07-06 15:02 Fix the call to re.sub to pass flags as a positional argument + test review
Messages (4)
msg192428 - (view) Author: Valentina Mukhamedzhanova (umi) * Date: 2013-07-06 12:32
header_decode function in the standard library email/quoprimime.py module calls re.sub with a positional argument for flags in the wrong position. My patch fixes it to use a keyword argument.
msg192448 - (view) Author: Valentina Mukhamedzhanova (umi) * Date: 2013-07-06 15:02
I have updated the patch with a testcase.
msg192451 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-07-06 15:17
New changeset c8fd1351c840 by Ezio Melotti in branch '3.3': #18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova. http://hg.python.org/cpython/rev/c8fd1351c840 New changeset 6e23ce14c3c6 by Ezio Melotti in branch 'default': #18380: merge with 3.3. http://hg.python.org/cpython/rev/6e23ce14c3c6
msg192452 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-07-06 15:19
Fixed, thanks for the patch!
History
Date User Action Args
2022-04-11 14:57:47 admin set github: 62580
2013-07-06 15:19:26 ezio.melotti set status: open -> closedversions: - Python 2.7messages: + assignee: ezio.melottiresolution: fixedstage: resolved
2013-07-06 15:17:59 python-dev set nosy: + python-devmessages: +
2013-07-06 15:02:59 umi set files: - patch_quoprimime
2013-07-06 15:02:46 umi set files: + patch_18380messages: +
2013-07-06 12:32:48 umi create