Patchwork D9354: errors: remove ParseError.args

login
register
mail settings
Submitter phabricator
Date Nov. 21, 2020, 12:26 a.m.
Message ID <differential-rev-PHID-DREV-jrdoimd3qe25sxaaqwbq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47630/
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
  With the previous few patches, it is no longer needed (as far as the
  test suite can tell anyway).

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -265,12 +265,6 @@ 
     def __init__(self, message, location=None, hint=None):
         super(ParseError, self).__init__(message, hint=hint)
         self.location = location
-        # Pass the message and possibly location into the Exception constructor
-        # to help code that looks for exc.args.
-        if location is not None:
-            Exception.__init__(self, message, location)
-        else:
-            Exception.__init__(self, message)
 
     def format(self):
         from .i18n import _