equal
deleted
inserted
replaced
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: |