def parse_month_year(date_string):
match = re.match('<STR_LIT>',<EOL>date_string.lower())<EOL>if not match:<EOL><INDENT>raise ValueError("<STR_LIT>".format(date_string))<EOL><DEDENT>month = int(match.group('<STR_LIT>'))<EOL>year = int(match.group('<STR_LIT>'))<EOL>return month, year<EOL>
>>> parse_month_year('01/10/2012')
(10, 2012)