def parse_uri(self, uri):
        status = False
        try:
            parsed_uri = self['regexp'].findall(self.URI_REGEXP, uri)[0]
            protocol = parsed_uri[0]
            if protocol != 'udp':
                _log.warn((protocol,) % "Protocol '%s' not supported, assuming udp")
            self.host = parsed_uri[1]
            self.port = int(parsed_uri[2])
            status = True
        except:
            _log.warn("malformed or erroneous control uri '%s'" % (uri,))
            self.host = None
            self.port = None
        return status
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/systemactors/net/UDPListener.py/UDPListener.parse_uri/swapped operands of `%`