def __exit__(self, typ, val, traceback):
    'Restore the handlers and flush this BufferingHandler'
    self.delayed_logger.removeHandler(self)
    self.delayed_logger.handlers.extend(self.delayed_handlers)
    self.close()
Restore the handlers and flush this BufferingHandler
def __exit__(self, typ, val, traceback):
    
    self.delayed_logger.removeHandler(self)
    self.delayed_logger.handlers.extend(self.delayed_handlers)
    self.close()