#NEWLINE# @ classmethod #NEWLINE# def _parse_suffix( cls , varion_code , startingMonth_code , weekday_code ) : #NEWLINE# #INDENT# if ( varion_code == 'N' ) : #NEWLINE# #INDENT# variation = 'nearest' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( varion_code == 'L' ) : #NEWLINE# #INDENT# variation = 'last' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( ( 'Unable to parse varion_code: %s' % ( varion_code , ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# startingMonth = _month_to_int [ startingMonth_code ] #NEWLINE# weekday = _weekday_to_int [ weekday_code ] #NEWLINE# return { #NEWLINE# #INDENT# 'weekday' : weekday , #NEWLINE# 'startingMonth' : startingMonth , #NEWLINE# 'variation' : variation , #NEWLINE# #UNINDENT# }