[Updated] D9354: errors: remove ParseError.args
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Nov 21 02:52:17 UTC 2020
Closed by commit rHGda178b816812: errors: remove ParseError.args (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9354?vs=23591&id=23605
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9354/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9354
AFFECTED FILES
mercurial/error.py
CHANGE DETAILS
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 _
To: martinvonz, #hg-reviewers, mharbison72
Cc: mharbison72, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20201121/2f0a283c/attachment-0002.html>
More information about the Mercurial-patches
mailing list