environment/lib/python2.7/site-packages/psutil/_pslinux.py
def get_system_users():
    """Return currently connected users as a list of namedtuples."""
    retlist = []
    rawlist = _psutil_linux.get_system_users()
    for item in rawlist:
        user, tty, hostname, tstamp, user_process = item
        # XXX the underlying C function includes entries about
        # system boot, run level and others.  We might want
        # to use them in the future.
        if not user_process:
            continue
        if hostname == ':0.0':
            hostname = 'localhost'
        nt = nt_user(user, tty or None, hostname, tstamp)
        retlist.append(nt)
    return retlist
def get_system_users():
    """Return currently connected users as a list of namedtuples."""
    retlist = []
    rawlist = _psutil_linux.get_system_users()
    for item in rawlist:
        user, tty, hostname, tstamp, user_process = item
        # XXX the underlying C function includes entries about
        # system boot, run level and others.  We might want
        # to use them in the future.
        if not user_process:
            continue
        if hostname == ':0.0':
            hostname = 'localhost'
        nt = nt_user(user, tty or None, hostname, tstamp)
        retlist.append(nt)
    return retlist
def get_system_users ( ) : retlist = [ ] rawlist = _psutil_linux . get_system_users ( ) for item in rawlist : user , tty , hostname , tstamp , user_process = item # XXX the underlying C function includes entries about # system boot, run level and others.  We might want # to use them in the future. if not user_process : continue if hostname == ':0.0' : hostname = 'localhost' nt = nt_user ( user , tty or None , hostname , tstamp ) retlist . append ( nt ) return retlist
Return currently connected users as a list of namedtuples.
Return currently connected users as a list of namedtuples .