environment/lib/python2.7/site-packages/gurumate-2.8.6-py2.7.egg/gurumate/httpd.py
def get_listening_ports(process_name="apache2"):
    '''
        returns a list of listening ports for running process (default=apache2)
    '''
    ports = set()
    for _, address_info in gurumate.base.get_listening_ports(process_name):
        ports.add(address_info[1])
    return list(ports)
def get_listening_ports(process_name="apache2"):
    '''
        returns a list of listening ports for running process (default=apache2)
    '''
    ports = set()
    for _, address_info in gurumate.base.get_listening_ports(process_name):
        ports.add(address_info[1])
    return list(ports)
def get_listening_ports ( process_name = "apache2" ) : ports = set ( ) for _ , address_info in gurumate . base . get_listening_ports ( process_name ) : ports . add ( address_info [ 1 ] ) return list ( ports )
returns a list of listening ports for running process (default=apache2)
returns a list of listening ports for running process ( default = apache2 )