Mercurial > public > mercurial-scm > hg
comparison contrib/debugshell.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 | 2372284d9457 |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
54 # if IPython doesn't exist, fallback to code.interact | 54 # if IPython doesn't exist, fallback to code.interact |
55 try: | 55 try: |
56 with demandimport.deactivated(): | 56 with demandimport.deactivated(): |
57 __import__(pdbmap[debugger]) | 57 __import__(pdbmap[debugger]) |
58 except ImportError: | 58 except ImportError: |
59 ui.warn( | 59 ui.warnnoi18n( |
60 b"%s debugger specified but %s module was not found\n" | 60 b"%s debugger specified but %s module was not found\n" |
61 % (debugger, pdbmap[debugger]) | 61 % (debugger, pdbmap[debugger]) |
62 ) | 62 ) |
63 debugger = b'pdb' | 63 debugger = b'pdb' |
64 | 64 |