Wrap long line

This commit is contained in:
Christopher Thompson 2020-10-10 00:13:40 -04:00
parent 5bcad6a305
commit 4e39644b00

View file

@ -63,7 +63,9 @@ def log_step(text, utc_start, end_section=False):
""" """
eastern = timezone('US/Eastern') eastern = timezone('US/Eastern')
start = utc_start.astimezone(eastern) start = utc_start.astimezone(eastern)
timelog_path = 'log/' + str(start.year) + '-' + format(start.month, '02') + '-' + format(start.day, '02') + '.log' timelog_path = 'log/' + str(start.year) + '-' \
+ format(start.month, '02') + '-' \
+ format(start.day, '02') + '.log'
timelog_file = Path(timelog_path) timelog_file = Path(timelog_path)
timelog_file.touch(exist_ok=True) timelog_file.touch(exist_ok=True)
with timelog_file.open('a') as timelog: with timelog_file.open('a') as timelog: