environment/lib/python2.7/site-packages/psutil/_pslinux.py
def get_system_per_cpu_times():
    """Return a list of namedtuple representing the CPU times
    for every CPU available on the system.
    """
    cpus = []
    f = open('/proc/stat', 'r')
    # get rid of the first line who refers to system wide CPU stats
    try:
        f.readline()
        for line in f.readlines():
            if line.startswith('cpu'):
                values = line.split()[1:8]
                values = tuple([float(x) / _CLOCK_TICKS for x in values])
                entry = nt_sys_cputimes(*values[:7])
                cpus.append(entry)
        return cpus
    finally:
        f.close()
def get_system_per_cpu_times():
    """Return a list of namedtuple representing the CPU times
    for every CPU available on the system.
    """
    cpus = []
    f = open('/proc/stat', 'r')
    # get rid of the first line who refers to system wide CPU stats
    try:
        f.readline()
        for line in f.readlines():
            if line.startswith('cpu'):
                values = line.split()[1:8]
                values = tuple([float(x) / _CLOCK_TICKS for x in values])
                entry = nt_sys_cputimes(*values[:7])
                cpus.append(entry)
        return cpus
    finally:
        f.close()
def get_system_per_cpu_times ( ) : cpus = [ ] f = open ( '/proc/stat' , 'r' ) # get rid of the first line who refers to system wide CPU stats try : f . readline ( ) for line in f . readlines ( ) : if line . startswith ( 'cpu' ) : values = line . split ( ) [ 1 : 8 ] values = tuple ( [ float ( x ) / _CLOCK_TICKS for x in values ] ) entry = nt_sys_cputimes ( * values [ : 7 ] ) cpus . append ( entry ) return cpus finally : f . close ( )
Return a list of namedtuple representing the CPU times
    for every CPU available on the system.
Return a list of namedtuple representing the CPU times for every CPU available on the system .