This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: email/quoprimime.py doesn't use re.sub correctly
Type: behavior Stage: resolved
Components: email, Library (Lib), Regular Expressions Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: barry, ezio.melotti, mrabarnett, python-dev, r.david.murray, umi
Priority: normal Keywords:

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:47adminsetgithub: 62580
2013-07-06 15:19:26ezio.melottisetstatus: open -> closed
versions: - Python 2.7
messages: + msg192452

assignee: ezio.melotti
resolution: fixed
stage: resolved
2013-07-06 15:17:59python-devsetnosy: + python-dev
messages: + msg192451
2013-07-06 15:02:59umisetfiles: - patch_quoprimime
2013-07-06 15:02:46umisetfiles: + patch_18380

messages: + msg192448
2013-07-06 12:32:48umicreate