mercurial/error.py
changeset 45890 68260c444fd3
parent 45887 7eb221b9af6c
child 45891 da178b816812
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: