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

Method close

Lib/logging/handlers.py:1381–1390  ·  view source on GitHub ↗

Close the handler. This version just flushes and chains to the parent class' close().

(self)

Source from the content-addressed store, hash-verified

1379 self.buffer.clear()
1380
1381 def close(self):
1382 """
1383 Close the handler.
1384
1385 This version just flushes and chains to the parent class' close().
1386 """
1387 try:
1388 self.flush()
1389 finally:
1390 logging.Handler.close(self)
1391
1392class MemoryHandler(BufferingHandler):
1393 """

Callers 1

test_builtin_handlersMethod · 0.95

Calls 2

flushMethod · 0.95
closeMethod · 0.45

Tested by 1

test_builtin_handlersMethod · 0.76