def __init__(self, date_range):
    StatCollection.__init__(self, "Day by day for ")
    
    start, end = [time.localtime(d) for d in date_range]
    
    for year in range(start.tm_year, end.tm_year + 1):
      for month in range(1, 13):
        # skip over months before our range        
        if year == start.tm_year and month < start.tm_mon: continue
        
        # and those after
        if year == end.tm_year and end.tm_mon > month: continue
        
        # dividers between years
        if month == 1 and year != start.tm_year: self._AddStatDivider()
        
        self._AddStatRef(
            DayStat(year, month), 
            "%s %s" % (year, MONTH_NAMES[month - 1]))
dataset/ETHPy150Open mihaip/mail-trends/stats/group.py/DayStatCollection.__init__/swapped operands of `>`