(s)
| 305 | def unescape_glob(string): |
| 306 | """Unescape glob pattern in `string`.""" |
| 307 | def unescape(s): |
| 308 | for pattern in '*[]!?': |
| 309 | s = s.replace(r'\{0}'.format(pattern), pattern) |
| 310 | return s |
| 311 | return '\\'.join(map(unescape, string.split('\\\\'))) |
| 312 | |
| 313 |