#NEWLINE# def stops( freq , interval = 1 , count = None , wkst = None , bysetpos = None , bymonth = None , bymonthday = None , byyearday = None , byeaster = None , byweekno = None , byweekday = None , byhour = None , byminute = None , bysecond = None , timezone = 'UTC' , start = None , stop = None ) : #NEWLINE# #INDENT# '\n    This will create a list of delorean objects the apply to\n    setting possed in.\n    ' #NEWLINE# if all ( [ ( ( start is None ) or is_datetime_naive ( start ) ) , ( ( stop is None ) or is_datetime_naive ( stop ) ) ] ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise DeloreanInvalidDatetime ( 'Provide a naive datetime object' ) #NEWLINE# #UNINDENT# if ( start is None ) : #NEWLINE# #INDENT# start = datetime_timezone ( timezone ) #NEWLINE# #UNINDENT# for dt in rrule ( freq , interval = interval , count = count , wkst = wkst , bysetpos = count , bymonth = bymonth , bymonthday = bymonthday , byyearday = byyearday , byeaster = byeaster , byweekno = byweekno , byweekday = byweekday , byhour = byhour , byminute = byminute , bysecond = bysecond , until = stop , dtstart = start ) : #NEWLINE# #INDENT# dt = dt . replace ( tzinfo = None ) #NEWLINE# d = Delorean ( datetime = dt , timezone = timezone ) #NEWLINE# ( yield d )