Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 43080:86e4daa2d54c
cleanup: mark some ui.(status|note|warn|write) calls as not needing i18n
These used to be marked with no-op parens, but black removes those now
and this is more explicit.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D6996
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 10:51:16 -0400 |
parents | 687b865b95ad |
children | c59eb1560c44 |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
91 try: | 91 try: |
92 func(*args, **kwargs) | 92 func(*args, **kwargs) |
93 except: # re-raises below | 93 except: # re-raises below |
94 if exc is None: | 94 if exc is None: |
95 exc = sys.exc_info()[1] | 95 exc = sys.exc_info()[1] |
96 self.ui.warn(b'error in exit handlers:\n') | 96 self.ui.warnnoi18n(b'error in exit handlers:\n') |
97 self.ui.traceback(force=True) | 97 self.ui.traceback(force=True) |
98 finally: | 98 finally: |
99 if exc is not None: | 99 if exc is not None: |
100 raise exc | 100 raise exc |
101 | 101 |