Ran black on code

This commit is contained in:
Griatch 2020-01-29 23:18:22 +01:00
parent ff16eb1bfe
commit c3cf3f99ab
4 changed files with 36 additions and 31 deletions

View file

@ -107,10 +107,12 @@ class WeeklyLogFile(logfile.DailyLogFile):
# all dates here are tuples (year, month, day)
now = self.toDate()
then = self.lastDate
return (now[0] > then[0] or
now[1] > then[1] or
now[2] > (then[2] + self.day_rotation) or
self.size >= self.max_size)
return (
now[0] > then[0]
or now[1] > then[1]
or now[2] > (then[2] + self.day_rotation)
or self.size >= self.max_size
)
def suffix(self, tupledate):
"""Return the suffix given a (year, month, day) tuple or unixtime.
@ -143,7 +145,6 @@ class WeeklyLogFile(logfile.DailyLogFile):
break
return suffix
def write(self, data):
"Write data to log file"
logfile.BaseLogFile.write(self, data)