parameters: (self)
docstring: Close the bound socket or named pipe of `self`.
docstring_summary: Close the bound socket or named pipe of `self`.
docstring_tokens: Close the bound socket or named pipe of self .
function: def close(self):
          '''
          Close the bound socket or named pipe of `self`.
          '''
          listener = self._listener
          if listener is not None:
              self._listener = None
              listener.close()
function_tokens: def close ( self ) : listener = self . _listener if listener is not None : self . _listener = None listener . close ( )