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