equal
deleted
inserted
replaced
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: |