~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/client.py

Compare URLs in RemoteRepository.__eq__, rather than '_client' attributes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    def __init__(self, shared_medium):
26
26
        self._shared_medium = shared_medium
27
27
 
28
 
    def __eq__(self, other):
29
 
        return self._shared_medium == other._shared_medium
30
 
 
31
 
    def __ne__(self, other):
32
 
        return not self == other
33
 
 
34
28
    def get_smart_medium(self):
35
29
        return self._shared_medium.connection
36
30