Mercurial > hg-stable
changeset 46466:8477c91b5e8e
histedit: don't assign to _ for unused values
I don't know what this ignored value is, but we need to not clobber
the _() function from gettext, or we get mysterious crashes instead of
internationalizing some strings in my upcoming patches.
Differential Revision: https://phab.mercurial-scm.org/D9853
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 22 Jan 2021 15:29:12 -0500 |
parents | 66e8e279133b |
children | a936e570288d |
files | hgext/histedit.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Tue Jan 26 17:25:30 2021 -0500 +++ b/hgext/histedit.py Fri Jan 22 15:29:12 2021 -0500 @@ -1615,7 +1615,7 @@ stdscr.refresh() while True: try: - oldmode, _ = state[b'mode'] + oldmode, unused = state[b'mode'] if oldmode == MODE_INIT: changemode(state, MODE_RULES) e = event(state, ch) @@ -1630,7 +1630,7 @@ if size != stdscr.getmaxyx(): curses.resizeterm(*size) - curmode, _ = state[b'mode'] + curmode, unused = state[b'mode'] sizes = layout(curmode) if curmode != oldmode: state[b'page_height'] = sizes[b'main'][0]