svn commit: r349838 - head/misc/py-pexpect/files

Dmitry Sivachenko demon at FreeBSD.org
Tue Apr 1 11:31:54 UTC 2014


Author: demon
Date: Tue Apr  1 11:31:54 2014
New Revision: 349838
URL: http://svnweb.freebsd.org/changeset/ports/349838
QAT: https://qat.redports.org/buildarchive/r349838/

Log:
  Fix for python3: all integers are "long".
  With python2, if a number does not fit into "short int", it is
  automatically promoted to "long".
  
  No objection from:	wg (maintainer)

Modified:
  head/misc/py-pexpect/files/patch-pexpect-__init__.py

Modified: head/misc/py-pexpect/files/patch-pexpect-__init__.py
==============================================================================
--- head/misc/py-pexpect/files/patch-pexpect-__init__.py	Tue Apr  1 11:25:56 2014	(r349837)
+++ head/misc/py-pexpect/files/patch-pexpect-__init__.py	Tue Apr  1 11:31:54 2014	(r349838)
@@ -8,7 +8,7 @@
 -        if TIOCSWINSZ == 2148037735:
 -            # Same bits, but with sign.
 -            TIOCSWINSZ = -2146929561
-+        TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735L)
++        TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', 2148037735)
          # Note, assume ws_xpixel and ws_ypixel are zero.
          s = struct.pack('HHHH', rows, cols, 0, 0)
          fcntl.ioctl(self.fileno(), TIOCSWINSZ, s)


More information about the svn-ports-head mailing list