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

Method close

Lib/logging/handlers.py:1446–1457  ·  view source on GitHub ↗

Flush, if appropriately configured, set the target to None and lose the buffer.

(self)

Source from the content-addressed store, hash-verified

1444 self.buffer.clear()
1445
1446 def close(self):
1447 """
1448 Flush, if appropriately configured, set the target to None and lose the
1449 buffer.
1450 """
1451 try:
1452 if self.flushOnClose:
1453 self.flush()
1454 finally:
1455 with self.lock:
1456 self.target = None
1457 BufferingHandler.close(self)
1458
1459
1460class QueueHandler(logging.Handler):

Callers

nothing calls this directly

Calls 2

flushMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected