#NEWLINE# def contains( self , date ) : #NEWLINE# #INDENT# if ( ( self . start is not None ) and ( date < self . start ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( ( self . end is not None ) and ( date >= self . end ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return True