def date_range(start_date, end_date):
if start_date >= end_date:<EOL><INDENT>for n in range((start_date - end_date).days + <NUM_LIT:1>):<EOL><INDENT>yield end_date + datetime.timedelta(n)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for n in range((end_date - start_date).days + <NUM_LIT:1>):<EOL><INDENT>yield start_date + datetime.timedelta(n)<EOL><DEDENT><DEDENT>
Get all dates in a given range.