MCPcopy Index your code
hub / github.com/python/cpython / _is_internal_frame

Function _is_internal_frame

Lib/logging/__init__.py:194–199  ·  view source on GitHub ↗

Signal whether the frame is a CPython or logging module internal.

(frame)

Source from the content-addressed store, hash-verified

192# frames of the import mechanism are skipped when logging at module level and
193# using a stacklevel value greater than one.
194def _is_internal_frame(frame):
195 """Signal whether the frame is a CPython or logging module internal."""
196 filename = os.path.normcase(frame.f_code.co_filename)
197 return filename == _srcfile or (
198 "importlib" in filename and "_bootstrap" in filename
199 )
200
201
202def _checkLevel(level):

Callers 1

findCallerMethod · 0.70

Calls 1

normcaseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…