#NEWLINE# def _isdst( self , dt ) : #NEWLINE# #INDENT# if ( not self . _start_delta ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# year = datetime . datetime ( dt . year , 1 , 1 ) #NEWLINE# start = ( year + self . _start_delta ) #NEWLINE# end = ( year + self . _end_delta ) #NEWLINE# dt = dt . replace ( tzinfo = None ) #NEWLINE# if ( start < end ) : #NEWLINE# #INDENT# return ( ( dt >= start ) and ( dt < end ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( ( dt >= start ) or ( dt < end ) )