~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-09 02:31:23 UTC
  • mfrom: (4090.2.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090309023123-7hvnfrilrt5ql771
compare types with is not '=' (Benjamin Peterson)

Show diffs side-by-side

added added

removed removed

Lines of Context:
499
499
        return 'bzr remote repository'
500
500
 
501
501
    def __eq__(self, other):
502
 
        return self.__class__ == other.__class__
 
502
        return self.__class__ is other.__class__
503
503
 
504
504
    def check_conversion_target(self, target_format):
505
505
        if self.rich_root_data and not target_format.rich_root_data:
710
710
        return result
711
711
 
712
712
    def has_same_location(self, other):
713
 
        return (self.__class__ == other.__class__ and
 
713
        return (self.__class__ is other.__class__ and
714
714
                self.bzrdir.transport.base == other.bzrdir.transport.base)
715
715
 
716
716
    def get_graph(self, other_repository=None):