

def sanitize(s):
    if (':' in s):
        (address, port) = s.split(':')
        port = int(port)
        return (address, port)
    return s

dataset/ETHPy150Open circuits/circuits/examples/portforward.py sanitize/original