summaryrefslogtreecommitdiffstats
path: root/Lib/fnmatch.py
Commit message (Collapse)AuthorAgeFilesLines
* 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