def get_battery_state(self, prop):
with open(os.path.join(self.options['<STR_LIT>'], prop), '<STR_LIT:r>') as f:<EOL><INDENT>return f.readline().strip()<EOL><DEDENT>
Return the first line from the file located at battery_path/prop as a
string.