Patchwork D9234: errors: remove unnecessary override of __bytes__ in RevlogError

login
register
mail settings
Submitter phabricator
Date Oct. 20, 2020, 7:33 p.m.
Message ID <differential-rev-PHID-DREV-b7ajpcykfp7kmtnmhkji-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47500/
State Superseded
Headers show

Comments

phabricator - Oct. 20, 2020, 7:33 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  StorageError already provides the same definition.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9234

AFFECTED FILES
  mercurial/error.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/error.py b/mercurial/error.py
--- a/mercurial/error.py
+++ b/mercurial/error.py
@@ -48,7 +48,7 @@ 
 
 
 class RevlogError(StorageError):
-    __bytes__ = _tobytes
+    pass
 
 
 class SidedataHashError(RevlogError):