MCPcopy Index your code
hub / github.com/bpython/bpython / _safe_glob

Function _safe_glob

bpython/autocomplete.py:345–346  ·  view source on GitHub ↗
(pathname: str)

Source from the content-addressed store, hash-verified

343
344
345def _safe_glob(pathname: str) -> Iterator[str]:
346 return glob.iglob(glob.escape(pathname) + "*")
347
348
349class FilenameCompletion(BaseCompletionType):

Callers 1

matchesMethod · 0.85

Calls 1

escapeMethod · 0.80

Tested by

no test coverage detected