parameters: (self)
docstring: Closes the socket.
docstring_summary: Closes the socket.
docstring_tokens: Closes the socket .
function: def close (self):
          """
          Closes the socket.
          """
          self.acquire()
          try:
              if self.unixsocket:
                  self.socket.close()
          finally:
              self.release()
          logging.Handler.close(self)
function_tokens: def close ( self ) : self . acquire ( ) try : if self . unixsocket : self . socket . close ( ) finally : self . release ( ) logging . Handler . close ( self )