

def parse_exposed_ports(ps):
    '\n    Parse array of exposed ports (not public).\n\n    [1000] -> { 1000: None }\n    [1000-1002] -> { 1000: None, 1001: None, 1002: None }\n\n    :return: dict\n    '
    result = {
        
    }
    for p in ps:
        if ('-' in p):
            (p1, p2) = ps.split('-')
            for x in range(p1, (p2 + 1)):
                result[x] = None
        else:
            result[p] = None
    return result

dataset/ETHPy150Open j-bennet/wharfee/wharfee/helpers.py parse_exposed_ports/VarMisuse@41/127 `p`->`ps`