def dump():
try:<EOL><INDENT>sensors = subprocess.check_output('<STR_LIT>').decode('<STR_LIT:utf-8>')<EOL><DEDENT>except (FileNotFoundError, subprocess.CalledProcessError):<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>cores = []<EOL>for line in sensors.splitlines():<EOL><INDENT>if line.startswith('<STR_LIT>'):<EOL><INDENT>core, rest = line.split('<STR_LIT::>')<EOL>temp = rest.strip().split()[<NUM_LIT:0>]<EOL>cores.append((core, temp))<EOL><DEDENT><DEDENT>for core, temp in cores:<EOL><INDENT>print(core + '<STR_LIT::>', temp)<EOL><DEDENT><DEDENT>cpu_number = <NUM_LIT:0><EOL>while True:<EOL><INDENT>try:<EOL><INDENT>_file = open(<EOL>CPU_PREFIX + '<STR_LIT>'.format(cpu_number))<EOL><DEDENT>except:<EOL><INDENT>break<EOL><DEDENT>print('<STR_LIT>' + str(cpu_number) + '<STR_LIT::>', _file.read().strip(), end='<STR_LIT:U+002CU+0020>')<EOL>_file.close()<EOL>try:<EOL><INDENT>_file = open(<EOL>CPU_PREFIX + '<STR_LIT>'.format(cpu_number))<EOL><DEDENT>except:<EOL><INDENT>break<EOL><DEDENT>freq = round(int(_file.read()) / <NUM_LIT:10> ** <NUM_LIT:6>, <NUM_LIT:2>)<EOL>print(freq, '<STR_LIT>')<EOL>cpu_number += <NUM_LIT:1><EOL><DEDENT>
dump function