def get_last_day_of_year_for_only_internal_bank_trans(self, year):
last_day = date(year, <NUM_LIT:12>, <NUM_LIT>)<EOL>if last_day.weekday() == SAT:<EOL><INDENT>return last_day - timedelta(days=<NUM_LIT:1>)<EOL><DEDENT>elif last_day.weekday() == SUN:<EOL><INDENT>return last_day - timedelta(days=<NUM_LIT:2>)<EOL><DEDENT>return last_day<EOL>
The last day of year isn't a working day for public bank
transactions in Brazil. More details can be read in
http://www.bcb.gov.br/pre/bc_atende/port/servicos4.asp