mercurial/crecord.py
changeset 50593 87b004378fc4
parent 50592 a5bba73a1352
child 50951 d718eddf01d9
equal deleted inserted replaced
50592:a5bba73a1352 50593:87b004378fc4
  1942         """
  1942         """
  1943         method to be wrapped by curses.wrapper() for selecting chunks.
  1943         method to be wrapped by curses.wrapper() for selecting chunks.
  1944         """
  1944         """
  1945 
  1945 
  1946         origsigwinch = sentinel = object()
  1946         origsigwinch = sentinel = object()
  1947         if util.safehasattr(signal, b'SIGWINCH'):
  1947         if util.safehasattr(signal, 'SIGWINCH'):
  1948             origsigwinch = signal.signal(signal.SIGWINCH, self.sigwinchhandler)
  1948             origsigwinch = signal.signal(signal.SIGWINCH, self.sigwinchhandler)
  1949         try:
  1949         try:
  1950             return self._main(stdscr)
  1950             return self._main(stdscr)
  1951         finally:
  1951         finally:
  1952             if origsigwinch is not sentinel:
  1952             if origsigwinch is not sentinel: