def splitport(port):
    port = port.split('/',1)
    proto = None
    if len(port) == 2:
        port, proto = port
    else:
        port = port[0]
    try:
        port = int(port)
    except __HOLE__:
        proto = port
        port = None
    return port, proto
dataset/ETHPy150Open bonsaiviking/NfSpy/nfspy/nfspy.py/splitport