Mercurial > hg
comparison mercurial/error.py @ 45775:5bb900885311
errors: remove unnecessary override of __bytes__ in RevlogError
StorageError already provides the same definition.
Differential Revision: https://phab.mercurial-scm.org/D9234
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 20 Oct 2020 08:58:20 -0700 |
parents | d2e1dcd4490d |
children | 0fc8b066928a |
comparison
equal
deleted
inserted
replaced
45774:450e17e59603 | 45775:5bb900885311 |
---|---|
46 | 46 |
47 __bytes__ = _tobytes | 47 __bytes__ = _tobytes |
48 | 48 |
49 | 49 |
50 class RevlogError(StorageError): | 50 class RevlogError(StorageError): |
51 __bytes__ = _tobytes | 51 pass |
52 | 52 |
53 | 53 |
54 class SidedataHashError(RevlogError): | 54 class SidedataHashError(RevlogError): |
55 def __init__(self, key, expected, got): | 55 def __init__(self, key, expected, got): |
56 self.sidedatakey = key | 56 self.sidedatakey = key |