Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Use pythonic line iteration. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions historian.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,10 +1113,7 @@ def main():
else:
input_file = open(input_file, "r")

while True:
line = input_file.readline()
if not line: break

for line in input_file:
if not on_mode and line.startswith("Battery History"):
on_mode = True
continue
Expand Down