Patchwork D9353: errors: let ParseError use Abort.__bytes__

login
register
mail settings
Submitter phabricator
Date Nov. 21, 2020, 12:26 a.m.
Message ID <differential-rev-PHID-DREV-4f5mai7av5urbkyftjfe-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47627/
State Superseded
Headers show

Comments

phabricator - Nov. 21, 2020, 12:26 a.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The function is no longer used anywhere as far as our tests can tell,
  so there's no need to have a custom version of it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -272,8 +272,6 @@ 
         else:
             Exception.__init__(self, message)
 
-    __bytes__ = _tobytes
-
     def format(self):
         from .i18n import _