#NEWLINE# def __init__( self , option_name , weekday_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . option_num = self . options . index ( option_name . lower ( ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid weekday position "%s"' % self ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . weekday = WEEKDAYS . index ( weekday_name . lower ( ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid weekday name "%s"' % weekday_name ) )