--- a/mercurial/crecord.py Wed Nov 06 16:53:01 2019 +0100
+++ b/mercurial/crecord.py Wed Nov 06 16:54:34 2019 +0100
@@ -59,6 +59,7 @@
try:
import curses
+ import curses.ascii
curses.error
except ImportError:
@@ -1938,7 +1939,7 @@
self.helpwindow()
self.stdscr.clear()
self.stdscr.refresh()
- elif curses.unctrl(keypressed) in ["^L"]:
+ elif keypressed in [curses.ascii.ctrl("L")]:
# scroll the current line to the top of the screen, and redraw
# everything
self.scrolllines(self.selecteditemstartline)