Show More
@@ -35,18 +35,6 b' class _match(object):' | |||||
35 | def anypats(self): |
|
35 | def anypats(self): | |
36 | return self._anypats |
|
36 | return self._anypats | |
37 |
|
37 | |||
38 | class always(_match): |
|
|||
39 | def __init__(self, root, cwd): |
|
|||
40 | _match.__init__(self, root, cwd, [], lambda f: True, False) |
|
|||
41 |
|
||||
42 | class never(_match): |
|
|||
43 | def __init__(self, root, cwd): |
|
|||
44 | _match.__init__(self, root, cwd, [], lambda f: False, False) |
|
|||
45 |
|
||||
46 | class exact(_match): |
|
|||
47 | def __init__(self, root, cwd, files): |
|
|||
48 | _match.__init__(self, root, cwd, files, self.exact, False) |
|
|||
49 |
|
||||
50 | class match(_match): |
|
38 | class match(_match): | |
51 | def __init__(self, root, cwd, patterns, include=[], exclude=[], |
|
39 | def __init__(self, root, cwd, patterns, include=[], exclude=[], | |
52 | default='glob'): |
|
40 | default='glob'): | |
@@ -108,6 +96,18 b' class match(_match):' | |||||
108 |
|
96 | |||
109 | _match.__init__(self, root, cwd, roots, m, anypats) |
|
97 | _match.__init__(self, root, cwd, roots, m, anypats) | |
110 |
|
98 | |||
|
99 | class exact(_match): | |||
|
100 | def __init__(self, root, cwd, files): | |||
|
101 | _match.__init__(self, root, cwd, files, self.exact, False) | |||
|
102 | ||||
|
103 | class always(match): | |||
|
104 | def __init__(self, root, cwd): | |||
|
105 | match.__init__(self, root, cwd, []) | |||
|
106 | ||||
|
107 | class never(exact): | |||
|
108 | def __init__(self, root, cwd): | |||
|
109 | exact.__init__(self, root, cwd, []) | |||
|
110 | ||||
111 | def patkind(pat): |
|
111 | def patkind(pat): | |
112 | return _patsplit(pat, None)[0] |
|
112 | return _patsplit(pat, None)[0] | |
113 |
|
113 |
General Comments 0
You need to be logged in to leave comments.
Login now