parameters: (self)
docstring: Close and reopen all file handlers.
docstring_summary: Close and reopen all file handlers.
docstring_tokens: Close and reopen all file handlers .
function: def reopen_files(self):
          """Close and reopen all file handlers."""
          for log in (self.error_log, self.access_log):
              for h in log.handlers:
                  if isinstance(h, logging.FileHandler):
                      h.acquire()
                      h.stream.close()
                      h.stream = open(h.baseFilename, h.mode)
                      h.release()
function_tokens: def reopen_files ( self ) : for log in ( self . error_log , self . access_log ) : for h in log . handlers : if isinstance ( h , logging . FileHandler ) : h . acquire ( ) h . stream . close ( ) h . stream = open ( h . baseFilename , h . mode ) h . release ( )