#NEWLINE# def __init__( self , n = 1 , normalize = False , **kwds ) : #NEWLINE# #INDENT# self . n = n #NEWLINE# self . normalize = normalize #NEWLINE# self . weekday = kwds [ 'weekday' ] #NEWLINE# if ( self . n == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'N cannot be 0' ) #NEWLINE# #UNINDENT# if ( ( self . weekday < 0 ) or ( self . weekday > 6 ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Day must be 0<=day<=6, got %d' % self . weekday ) ) #NEWLINE# #UNINDENT# self . kwds = n