#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# 'Return true if this url is /exactly/ equal to another' #NEWLINE# if isinstance ( other , basestring ) : #NEWLINE# #INDENT# return self . __eq__ ( self . parse ( other , 'utf-8' ) ) #NEWLINE# #UNINDENT# return ( ( self . _scheme == other . _scheme ) and ( self . _host == other . _host ) and ( self . _path == other . _path ) and ( self . _port == other . _port ) and ( self . _params == other . _params ) and ( self . _query == other . _query ) and ( self . _fragment == other . _fragment ) )