~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Ian Clatworthy
  • Date: 2009-03-10 01:36:07 UTC
  • mfrom: (4088.3.1 compare-types)
  • mto: This revision was merged to the branch mainline in revision 4094.
  • Revision ID: ian.clatworthy@canonical.com-20090310013607-5ah4560nqjvxqcf3
compare types with is not '=' (Benjamin Peterson)

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
               )
155
155
 
156
156
    def __eq__(self, other):
157
 
        if self.__class__ != other.__class__:
 
157
        if self.__class__ is not other.__class__:
158
158
            return NotImplemented
159
159
        return self.__dict__ == other.__dict__
160
160