[issue17198] dbm.whichdb references unitialized 'ndbm' variable
Valentina Mukhamedzhanova added the comment: I added a testcase to demonstrate the bug and an import of ndbm to dbm.__init__.py to fix the bug. -- nosy: +umi Added file: http://bugs.python.org/file30839/patch_17198 ___ Python tracker <http://bugs.python.org/issue17198> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova : Added file: http://bugs.python.org/file30821/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30811/patch_quoprimime ___ Python tracker <http://bugs.python.org/issue18380> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Valentina Mukhamedzhanova added the comment: I have updated the patch with a testcase. -- Added file: http://bugs.python.org/file30819/patch_18380 ___ Python tracker <http://bugs.python.org/issue18380> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova : Added file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30801/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
New submission from Valentina Mukhamedzhanova: 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. -- components: Library (Lib), Regular Expressions, email files: patch_quoprimime messages: 192428 nosy: barry, ezio.melotti, mrabarnett, r.david.murray, umi priority: normal severity: normal status: open title: email/quoprimime.py doesn't use re.sub correctly type: behavior versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30811/patch_quoprimime ___ Python tracker <http://bugs.python.org/issue18380> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Valentina Mukhamedzhanova added the comment: Please see my patch, I have changed flags to be instances of IntEnum and added a check to re.sub, re.subn and re.split. The patch contains some tests. This solution also allowed me to discover several bugs in the standard library, and I am going to create tickets for them shortly. -- nosy: +umi Added file: http://bugs.python.org/file30801/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com