(self)
Get the HTTPHandler object for the current connection
Get the HTTPHandler object for the current connection
Get the HTTPHandler object for the current connection
def get_handler(self):
        """
        Get the HTTPHandler object for the current connection
        """

        if not self.opener:
            return None

        for handler in self.opener.handlers:
            if isinstance(handler, ValidatingHTTPSHandler) or isinstance(handler, DebuggableHTTPHandler):
                return handler
def get_handler ( self ) : if not self . opener : return None for handler in self . opener . handlers : if isinstance ( handler , ValidatingHTTPSHandler ) or isinstance ( handler , DebuggableHTTPHandler ) : return handler