~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.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:
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