#NEWLINE# def __init__( self , first , last = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# first_num = WEEKDAYS . index ( first . lower ( ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid weekday name "%s"' % first ) ) #NEWLINE# #UNINDENT# if last : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# last_num = WEEKDAYS . index ( last . lower ( ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid weekday name "%s"' % last ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# last_num = None #NEWLINE# #UNINDENT# RangeExpression . __init__ ( self , first_num , first )