~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Benjamin Peterson
  • Date: 2009-03-07 20:45:34 UTC
  • mto: (4090.2.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4094.
  • Revision ID: benjamin@python.org-20090307204534-5sxqxn5di37bquae
compare types with 'is' not ==

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):