MCPcopy Create free account
hub / github.com/ipython/ipython / unescape

Function unescape

IPython/utils/path.py:307–310  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

305def 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

Callers 1

shellglobFunction · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected