Show More
@@ -242,7 +242,10 b' def expandpats(pats):' | |||||
242 | for p in pats: |
|
242 | for p in pats: | |
243 | kind, name = _match._patsplit(p, None) |
|
243 | kind, name = _match._patsplit(p, None) | |
244 | if kind is None: |
|
244 | if kind is None: | |
|
245 | try: | |||
245 | globbed = glob.glob(name) |
|
246 | globbed = glob.glob(name) | |
|
247 | except re.error: | |||
|
248 | globbed = [name] | |||
246 | if globbed: |
|
249 | if globbed: | |
247 | ret.extend(globbed) |
|
250 | ret.extend(globbed) | |
248 | continue |
|
251 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now