def get_output_original(self):
with open(self.file, "<STR_LIT:r>") as f:<EOL><INDENT>temp = float(f.read().strip()) / <NUM_LIT:1000><EOL><DEDENT>if self.dynamic_color:<EOL><INDENT>perc = int(self.percentage(int(temp), self.alert_temp))<EOL>if (perc > <NUM_LIT>):<EOL><INDENT>perc = <NUM_LIT><EOL><DEDENT>color = self.colors[perc]<EOL><DEDENT>else:<EOL><INDENT>color = self.color if temp < self.alert_temp else self.alert_color<EOL><DEDENT>return {<EOL>"<STR_LIT>": self.format.format(temp=temp),<EOL>"<STR_LIT>": color,<EOL>}<EOL>
Build the output the original way. Requires no third party libraries.