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

Class _StderrHandler

Lib/logging/__init__.py:1275–1289  ·  view source on GitHub ↗

This class is like a StreamHandler using sys.stderr, but always uses whatever sys.stderr is currently set to rather than the value of sys.stderr at handler construction time.

Source from the content-addressed store, hash-verified

1273
1274
1275class _StderrHandler(StreamHandler):
1276 """
1277 This class is like a StreamHandler using sys.stderr, but always uses
1278 whatever sys.stderr is currently set to rather than the value of
1279 sys.stderr at handler construction time.
1280 """
1281 def __init__(self, level=NOTSET):
1282 """
1283 Initialize the handler.
1284 """
1285 Handler.__init__(self, level)
1286
1287 @property
1288 def stream(self):
1289 return sys.stderr
1290
1291
1292_defaultLastResort = _StderrHandler(WARNING)

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…