Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2014 11:31:54 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349838 - head/misc/py-pexpect/files
Message-ID:  <201404011131.s31BVsBE044021@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404011131.s31BVsBE044021>