[issue24108] fnmatch.translate('*.txt') fails
Merlijn van Deen added the comment:
They are subtly different; the new regex also matches filenames with newlines, the old one doesn't (see Issue #6665 [1]).
Patch (although crazily minor) attached. With some fuzz, it applies on everything from 2.6..default.
[1] https://bugs.python.org/issue6665
----------
assignee: -> docs@python
components: +Documentation -asyncio
keywords: +patch
nosy: +docs@python
Added file: http://bugs.python.org/file39261/default.diff
_______________________________________
Python tracker
Christophe BAL added the comment:
You're totally wrong and I am wrong.
There is still the tiny problem of the documentation.
Thanks for all.
*Christophe BAL*
*Enseignant de mathématiques en Lycée **et développeur Python amateur*
*---*
*French math teacher in a "Lycée" **and **Python **amateur developer*
2015-05-01 22:16 GMT+02:00 Merlijn van Deen
Merlijn van Deen added the comment:
They are subtly different; the new regex also matches filenames with newlines, the old one doesn't (see Issue #6665 [1]).
Patch (although crazily minor) attached. With some fuzz, it applies on everything from 2.6..default.
[1] https://bugs.python.org/issue6665
---------- assignee: -> docs@python components: +Documentation -asyncio keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file39261/default.diff
_______________________________________ Python tracker
http://bugs.python.org/issue24108 _______________________________________
----------
_______________________________________
Python tracker
Christophe BAL added the comment:
Oups, sorry I want to say that you are totally RIGHT, and I am definitely
WRONG. :-)
----------
_______________________________________
Python tracker
participants (2)
-
Christophe BAL
-
Merlijn van Deen