@property
    def hostname(self):
        netloc = self.netloc.split('@', 1)[-1]
        if netloc.startswith('['):
            return netloc[1:].split(']')[0]
        elif netloc in ':':
            return netloc.rsplit(':')[0]
        return netloc
dataset/ETHPy150Open openstack/swift/swift/common/utils.py/ModifiedParseResult.hostname/swapped operands of `in`