Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
345
def
_safe_glob(pathname: str) -> Iterator[str]:
346
return
glob.iglob(glob.escape(pathname) +
"*"
)
347
348
349
class
FilenameCompletion(BaseCompletionType):
Callers
1
matches
Method · 0.85
Calls
1
escape
Method · 0.80
Tested by
no test coverage detected