Show More
@@ -1614,12 +1614,15 b' are you sure you want to review/edit and' | |||
|
1614 | 1614 | method to be wrapped by curses.wrapper() for selecting chunks. |
|
1615 | 1615 | """ |
|
1616 | 1616 | |
|
1617 | origsigwinchhandler = signal.signal(signal.SIGWINCH, | |
|
1618 | self.sigwinchhandler) | |
|
1617 | origsigwinch = sentinel = object() | |
|
1618 | if util.safehasattr(signal, 'SIGWINCH'): | |
|
1619 | origsigwinch = signal.signal(signal.SIGWINCH, | |
|
1620 | self.sigwinchhandler) | |
|
1619 | 1621 | try: |
|
1620 | 1622 | return self._main(stdscr) |
|
1621 | 1623 | finally: |
|
1622 | signal.signal(signal.SIGWINCH, origsigwinchhandler) | |
|
1624 | if origsigwinch is not sentinel: | |
|
1625 | signal.signal(signal.SIGWINCH, origsigwinch) | |
|
1623 | 1626 | |
|
1624 | 1627 | def _main(self, stdscr): |
|
1625 | 1628 | self.stdscr = stdscr |
General Comments 0
You need to be logged in to leave comments.
Login now