#NEWLINE# def __init__( self , window = None , filter = None ) : #NEWLINE# #INDENT# if ( window is not None ) : #NEWLINE# #INDENT# self . window = window #NEWLINE# #UNINDENT# if ( not isinstance ( self . window , ( type ( None ) , datetime . timedelta ) ) ) : #NEWLINE# #INDENT# if any ( ( ( getattr ( self , e ) . _fluff_emitter == 'date' ) for e in self . _fluff_emitters ) ) : #NEWLINE# #INDENT# raise NotImplementedError ( ( 'window must be timedelta, not %s' % type ( window . window ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _filter = filter