summaryrefslogtreecommitdiffstats
path: root/Lib/fnmatch.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-89973: Fix re.error in the fnmatch module. (GH-93072)Serhiy Storchaka2022-06-051-7/+23
| | | | | | Character ranges with upper bound less that lower bound (e.g. [c-a]) are now interpreted as empty ranges, for compatibility with other glob pattern implementations. Previously it was re.error.
* bpo-47080: Use atomic groups to simplify fnmatch (GH-32029)Tim Peters2022-03-211-19/+5
| | | Use re's new atomic groups to greatly simplify the construction of worst-case linear-time patterns.
* bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084)andrei kulakov2021-07-151-1/+1
|
* bpo-36769: Document that fnmatch.filter supports any kind of iterable (#13039)Andre Delfino2020-12-181-1/+1
|
* bpo-40480: restore ability to join fnmatch.translate() results (GH-20049)Tim Peters2020-05-121-4/+13
| | | | | | | In translate(), generate unique group names across calls. The restores the undocumented ability to get a valid regexp by joining multiple translate() results via `|`.
* bpo-40480 "fnmatch" exponential execution time (GH-19908)Tim Peters2020-05-061-7/+53
| | | | | bpo-40480: create different regexps in the presence of multiple `*` patterns to prevent fnmatch() from taking exponential time.
* bpo-32775: Fix regular expression warnings in fnmatch. (#5583)Serhiy Storchaka2018-02-091-2/+21
| | | | | | | | | fnmatch.translate() no longer produces patterns which contain set operations. Sets starting with '[' or containing '--', '&&', '~~' or '||' will be interpreted differently in regular expressions in future versions. Currently they emit warnings. fnmatch.translate() now avoids producing patterns containing such sets by accident.
* Issue #22493: Inline flags now should be used only at the start of theSerhiy Storchaka2016-09-111-1/+1
| | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression.
* #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* Set cache sizes to a power-of-twoRaymond Hettinger2013-02-171-1/+1
|
* Fix BytesWarnings in fnmatchAntoine Pitrou2011-11-081-1/+1
|
* Bytes are already distinct from text, so typed=True isn't necessary.Raymond Hettinger2011-10-201-1/+1
|
* Simplify calls in fnmatch.Raymond Hettinger2011-10-201-5/+5
|
* Re-apply r83871.Antoine Pitrou2010-08-131-31/+13
|
* Also temporarily revert r83871, to fix compilation on buildbotsAntoine Pitrou2010-08-091-13/+31
|
* Issue 7846: fnmatch cache can grow without boundRaymond Hettinger2010-08-091-31/+13
| | | | | | Updated to solution to use the functools.lru_cache(). Restores the API so that purge() is not needed (because the cache never gets big).
* Make fnmatch be more PEP 8 compliant.Brett Cannon2010-07-231-8/+11
| | | | Partially closes issue 9356. Thanks to Brian Brazil for the patch.
* Fix 'refleak' introduced by fnmatch cache purge tests.R. David Murray2010-07-101-1/+6
| | | | | This introduces a 'purge' function for the fnmatch module analogous to the 'purge' function in the re module.
* 7846: limit fnmatch pattern cache to _MAXCACHE=100 entries.R. David Murray2010-07-091-0/+3
| | | | Patch by Andrew Clegg.
* Merged revisions 74475 via svnmerge fromGregory P. Smith2009-08-161-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74475 | gregory.p.smith | 2009-08-16 11:52:58 -0700 (Sun, 16 Aug 2009) | 2 lines Issue 6665: Fix fnmatch to properly match filenames with newlines in them. ........
* Change fnmatch.py to use separate caches for str and bytes keys.Guido van Rossum2008-10-031-3/+5
| | | | This is necessary to pass the tests with -bb.
* Issue #3187: Better support for "undecodable" filenames. Code by VictorGuido van Rossum2008-10-021-10/+17
| | | | Stinner, with small tweaks by GvR.
* SF patch #765238: fix fnmatch.__all__Raymond Hettinger2003-07-131-1/+1
| | | | (Contributed by George Yoshida.)
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Patch #409973: Speedup glob.glob, add fnmatch.filter.Martin v. Löwis2001-06-061-0/+20
|
* Donovan Baarda <abo@users.sourceforge.net>:Fred Drake2001-03-211-9/+5
| | | | | | Patch to make "\" in a character group work properly. This closes SF bug #409651.
* more __all__ updatesSkip Montanaro2001-01-201-0/+2
|
* Whitespace normalization.Tim Peters2001-01-141-68/+68
|
* typos fixed by Rob HooftJeremy Hylton2000-06-281-1/+1
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-9/+6
|
* changes for the MacGuido van Rossum1995-01-271-9/+45
|
* Get rid of debug print statement.Guido van Rossum1992-01-141-1/+0
|
* Rewritten using regex.Guido van Rossum1992-01-121-65/+45
|
* New == syntaxGuido van Rossum1992-01-011-18/+24
|
* Support [...] ranges. Also [!...] for negated ranges, SYSV shell style.Guido van Rossum1991-04-071-14/+50
|
* Initial revisionGuido van Rossum1991-01-011-0/+35