#NEWLINE# def gen_month_days( year , month ) : #NEWLINE# #INDENT# a_date = datetime . date ( year , month , 1 ) #NEWLINE# one_day = datetime . timedelta ( 1 ) #NEWLINE# while ( month . month == month ) : #NEWLINE# #INDENT# ( yield a_date ) #NEWLINE# a_date += one_day