Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f08c5f1c
Commit
f08c5f1c
authored
Dec 13, 1999
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'search', not 'match', on filename pattern regexes.
parent
8f1d5f94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/distutils/command/dist.py
Lib/distutils/command/dist.py
+2
-2
No files found.
Lib/distutils/command/dist.py
View file @
f08c5f1c
...
...
@@ -274,7 +274,7 @@ class Dist (Command):
files = []
for file in allfiles:
for (include,regexp) in act_patterns:
if regexp.
mat
ch (file):
if regexp.
sear
ch (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.
mat
ch (self.files[i]):
if regexp.
sear
ch (self.files[i]):
del self.files[i]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment