diff options
author | Greg Ward <gward@python.net> | 1999-12-13 21:38:57 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-12-13 21:38:57 (GMT) |
commit | 97798b1d47025226496c41c42494a1b109316aea (patch) | |
tree | 061b73d82735e39a0b837fda661c40bc9f947494 /Lib | |
parent | 71f00fb6df1a74b40a15447f85f0ca4d06cb3145 (diff) | |
download | cpython-97798b1d47025226496c41c42494a1b109316aea.zip cpython-97798b1d47025226496c41c42494a1b109316aea.tar.gz cpython-97798b1d47025226496c41c42494a1b109316aea.tar.bz2 |
Use 'search', not 'match', on filename pattern regexes.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/dist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/dist.py b/Lib/distutils/command/dist.py index cdd4dfc..2e4aacd 100644 --- a/Lib/distutils/command/dist.py +++ b/Lib/distutils/command/dist.py @@ -274,7 +274,7 @@ class Dist (Command): files = [] for file in allfiles: for (include,regexp) in act_patterns: - if regexp.match (file): + if regexp.search (file): if include: files.append (file) break # continue to next file @@ -290,7 +290,7 @@ class Dist (Command): regexp = re.compile (fnmatch.translate (pattern)) for i in range (len (self.files)-1, -1, -1): - if regexp.match (self.files[i]): + if regexp.search (self.files[i]): del self.files[i] |