/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

merge bzr.dev rev 4098

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
 
1634
1634
            self.port = ':%s' % port
1635
1635
 
1636
1636
 
 
1637
# XXX: This is also used for unexpected end of file, which is different at the
 
1638
# TCP level from "connection reset".
1637
1639
class ConnectionReset(TransportError):
1638
1640
 
1639
1641
    _fmt = "Connection closed: %(msg)s %(orig_error)s"