#NEWLINE# def _isdst( self , dt ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return super ( LocalTimezone , self ) . _isdst ( dt ) #NEWLINE# #UNINDENT# except ( OverflowError , ValueError ) as exc : #NEWLINE# #INDENT# exc_type = type ( exc ) #NEWLINE# exc_value = exc_type ( ( 'Unsupported value: %r. You should install pytz.' % dt ) ) #NEWLINE# exc_value . __cause__ = exc #NEWLINE# six . reraise ( exc_type , exc_value , sys . exc_info ( ) [ 2 ] )