equal
deleted
inserted
replaced
349 # otherwise, we need to pull two partial logs |
349 # otherwise, we need to pull two partial logs |
350 else : |
350 else : |
351 # open both of them |
351 # open both of them |
352 f_begin = self._get_logfile_date(d_begin) |
352 f_begin = self._get_logfile_date(d_begin) |
353 f_end = self._get_logfile_date(d_end) |
353 f_end = self._get_logfile_date(d_end) |
354 |
354 |
355 # chain together the two sources |
355 # chain together the two sources |
356 return itertools.chain(f_begin.read_from(dtz_begin), f_end.read_until(dtz_end)) |
356 return itertools.chain( |
|
357 f_begin.read_from(dtz_begin), |
|
358 f_end.read_until(dtz_end) if f_end else [] |
|
359 ) |
357 |
360 |
358 def get_month_days (self, month) : |
361 def get_month_days (self, month) : |
359 """ |
362 """ |
360 Returns a set of dates for which logfiles are available in the given datetime's month |
363 Returns a set of dates for which logfiles are available in the given datetime's month |
361 """ |
364 """ |