MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_disabled

Method _is_disabled

Lib/logging/__init__.py:1826–1829  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1824 _hierlevel(item) == 1 + _hierlevel(item.parent))
1825
1826 def _is_disabled(self):
1827 # We need to use getattr as it will only be set the first time a log
1828 # message is recorded on any given thread
1829 return self.disabled or getattr(self._tls, 'in_progress', False)
1830
1831 def __repr__(self):
1832 level = getLevelName(self.getEffectiveLevel())

Callers 2

handleMethod · 0.95
isEnabledForMethod · 0.95

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected