diff options
Diffstat (limited to 'misc/py-pexpect/files/patch-pexpect-__init__.py')
-rw-r--r-- | misc/py-pexpect/files/patch-pexpect-__init__.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/misc/py-pexpect/files/patch-pexpect-__init__.py b/misc/py-pexpect/files/patch-pexpect-__init__.py index 6b855a9f2430..9eaab85a9ec8 100644 --- a/misc/py-pexpect/files/patch-pexpect-__init__.py +++ b/misc/py-pexpect/files/patch-pexpect-__init__.py @@ -1,13 +1,10 @@ ---- pexpect/__init__.py.orig 2013-11-11 17:58:03.000000000 +0000 -+++ pexpect/__init__.py 2013-12-26 08:28:18.423632870 +0000 -@@ -1558,10 +1558,7 @@ - # TIOCSWINSZ and they don't have a truncate problem. - # Newer versions of Linux have totally different values for TIOCSWINSZ. - # Note that this fix is a hack. +--- pexpect/__init__.py.orig 2014-04-15 03:31:01.000000000 +0200 ++++ pexpect/__init__.py 2014-05-12 14:41:21.690335992 +0200 +@@ -1562,7 +1562,7 @@ + # termios.TIOCSWINSZ to be truncated. There was a hack here to work + # around this, but it caused problems with newer platforms so has been + # removed. For details see https://github.com/pexpect/pexpect/issues/39 - TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', -2146929561) -- if TIOCSWINSZ == 2148037735: -- # Same bits, but with sign. -- TIOCSWINSZ = -2146929561 + TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735) # Note, assume ws_xpixel and ws_ypixel are zero. s = struct.pack('HHHH', rows, cols, 0, 0) |