~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2008-07-23 08:10:03 UTC
  • mto: This revision was merged to the branch mainline in revision 3575.
  • Revision ID: andrew.bennetts@canonical.com-20080723081003-fa7hm8rl07mnp91r
Add unit tests for bzrlib.remote._translate_error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
               getattr(self, '_fmt', None),
136
136
               )
137
137
 
 
138
    def __eq__(self, other):
 
139
        if self.__class__ != other.__class__:
 
140
            return NotImplemented
 
141
        return self.__dict__ == other.__dict__
 
142
 
138
143
 
139
144
class InternalBzrError(BzrError):
140
145
    """Base class for errors that are internal in nature.