changeset 45891:da178b816812

errors: remove ParseError.args With the previous few patches, it is no longer needed (as far as the test suite can tell anyway). Differential Revision: https://phab.mercurial-scm.org/D9354
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 20 Nov 2020 10:34:26 -0800
parents 68260c444fd3
children 06b64fabf91c
files mercurial/error.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/error.py	Fri Nov 20 13:55:32 2020 -0800
+++ b/mercurial/error.py	Fri Nov 20 10:34:26 2020 -0800
@@ -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 _