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

Class _StderrHandler

Lib/logging/__init__.py:1272–1286  ·  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

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

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected