##// END OF EJS Templates
crecord: extract most of 'main' into a sub function...
Pierre-Yves David -
r31929:bf6b44da default
parent child Browse files
Show More
@@ -1616,6 +1616,10 b' are you sure you want to review/edit and'
1616 1616
1617 1617 origsigwinchhandler = signal.signal(signal.SIGWINCH,
1618 1618 self.sigwinchhandler)
1619 return self._main(stdscr)
1620 signal.signal(signal.SIGWINCH, origsigwinchhandler)
1621
1622 def _main(self, stdscr):
1619 1623 self.stdscr = stdscr
1620 1624 # error during initialization, cannot be printed in the curses
1621 1625 # interface, it should be printed by the calling code
@@ -1667,4 +1671,3 b' are you sure you want to review/edit and'
1667 1671 keypressed = "foobar"
1668 1672 if self.handlekeypressed(keypressed):
1669 1673 break
1670 signal.signal(signal.SIGWINCH, origsigwinchhandler)
General Comments 0
You need to be logged in to leave comments. Login now