From d11b2376baf67167c8e3d223e79025c0439db7a3 2010-04-25 05:20:56 From: Fernando Perez Date: 2010-04-25 05:20:56 Subject: [PATCH] Fix ipipe/ibrowse bug on OSX. Note that ipipe still needs updating to come out of deathrow, but since I made this fix for the 0.10.1 branch, I want to keep it updated in trunk at least. Closes https://bugs.launchpad.net/ipython/+bug/566675 --- diff --git a/IPython/deathrow/ibrowse.py b/IPython/deathrow/ibrowse.py index 809b4c9..f937012 100644 --- a/IPython/deathrow/ibrowse.py +++ b/IPython/deathrow/ibrowse.py @@ -1757,7 +1757,7 @@ class ibrowse(ipipe.Display): self.scr = None def display(self): - if hasattr(curses, "resize_term"): + if hasattr(curses, "resize_term") and hasattr(signal, 'SIGWINCH'): oldhandler = signal.signal(signal.SIGWINCH, self.sigwinchhandler) try: return curses.wrapper(self._dodisplay)