#NEWLINE# @ classmethod #NEWLINE# def get_summary_periods( cls ) : #NEWLINE# #INDENT# config = dd . plugins . summaries #NEWLINE# for year in range ( config . start_year , config . end_year ) : #NEWLINE# #INDENT# if ( cls . summary_period == 'yearly' ) : #NEWLINE# #INDENT# ( yield ( year , None ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for month in range ( 1 , 12 ) : #NEWLINE# #INDENT# ( yield ( year , month ) )