comparison mercurial/error.py @ 45890:68260c444fd3

errors: let ParseError use Abort.__bytes__ 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. Differential Revision: https://phab.mercurial-scm.org/D9353
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 20 Nov 2020 13:55:32 -0800
parents 7eb221b9af6c
children da178b816812
comparison
equal deleted inserted replaced
45889:e5a0efd26f7a 45890:68260c444fd3
269 # to help code that looks for exc.args. 269 # to help code that looks for exc.args.
270 if location is not None: 270 if location is not None:
271 Exception.__init__(self, message, location) 271 Exception.__init__(self, message, location)
272 else: 272 else:
273 Exception.__init__(self, message) 273 Exception.__init__(self, message)
274
275 __bytes__ = _tobytes
276 274
277 def format(self): 275 def format(self):
278 from .i18n import _ 276 from .i18n import _
279 277
280 if self.location is not None: 278 if self.location is not None: