MCPcopy Index your code
hub / github.com/ipython/ipython / unescape

Function unescape

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

Source from the content-addressed store, hash-verified

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

Callers 1

shellglobFunction · 0.85

Calls 2

replaceMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…