Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _is_filename_to_skip
Function
_is_filename_to_skip
Lib/_py_warnings.py:423–424 ·
view source on GitHub ↗
(filename, skip_file_prefixes)
Source
from the content-addressed store, hash-verified
421
422
423
def
_is_filename_to_skip(filename, skip_file_prefixes):
424
return
any(filename.startswith(prefix)
for
prefix in skip_file_prefixes)
425
426
427
def
_is_internal_frame(frame):
Callers
1
_next_external_frame
Function · 0.85
Calls
2
any
Function · 0.70
startswith
Method · 0.45
Tested by
no test coverage detected