#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , compat . string_types ) : #NEWLINE# #INDENT# from pandas.tseries.frequencies import to_offset #NEWLINE# other = to_offset ( other ) #NEWLINE# #UNINDENT# if isinstance ( other , Tick ) : #NEWLINE# #INDENT# return ( other . delta == other . delta ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return DateOffset . __eq__ ( self , other )