#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , compat . string_types ) : #NEWLINE# #INDENT# return ( other == self . name ) #NEWLINE# #UNINDENT# return ( isinstance ( other , DatetimeTZDtype ) and ( self . unit == other . unit ) and ( str ( self . tz ) == str ( other . tz ) ) )