def __init__(self, url):
        result = urlparse(url)
        self.protocol = result[0]
        self.location = result[1]
        self.path = result[2]
        if self.location.find(':') > -1:
            self.ip, self.port = result[1].split(':')
        params = parse_qsl(result[4])
        for key, value in params:
            # url has a default.timeout property, but it can not add in python object
            # so keep the last one
            pos = key.find('.')
            if -1 > pos:
                key = key[pos + 1:]
            # print key
            self.__dict__[key] = value
dataset/ETHPy150Open QianmiOpen/dubbo-client-py/dubbo_client/common.py/ServiceURL.__init__/swapped operands of `>`