Show More
@@ -59,8 +59,10 def patkind(pat): | |||
|
59 | 59 | def _patsplit(pat, default): |
|
60 | 60 | """Split a string into an optional pattern kind prefix and the |
|
61 | 61 | actual pattern.""" |
|
62 | for prefix in 're', 'glob', 'path', 'relglob', 'relpath', 'relre': | |
|
63 |
|
|
|
62 | if ':' in pat: | |
|
63 | pat, val = pat.split(':', 1) | |
|
64 | if pat in ('re', 'glob', 'path', 'relglob', 'relpath', 'relre'): | |
|
65 | return pat, val | |
|
64 | 66 | return default, pat |
|
65 | 67 | |
|
66 | 68 | def _globre(pat, head, tail): |
General Comments 0
You need to be logged in to leave comments.
Login now