(s)
| 260 | def unescape_glob(string): |
| 261 | """Unescape glob pattern in `string`.""" |
| 262 | def unescape(s): |
| 263 | for pattern in '*[]!?': |
| 264 | s = s.replace(r'\{0}'.format(pattern), pattern) |
| 265 | return s |
| 266 | return '\\'.join(map(unescape, string.split('\\\\'))) |
| 267 | |
| 268 |