def get_host(addr, is_ssl=False):
    """ return a correct Host header """
    host = addr[0]
    if addr[1] != (is_ssl and 443 or 80):
        host = (host, addr[1]) % "%s:%s"
    return host
dataset/ETHPy150Open benoitc/hroute/hroute/util.py/get_host/swapped operands of `%`