Hilko Bengen
2011-Aug-22 18:45 UTC
[Libguestfs] [PATCH] hivex: Newer Python versions want parentheses around arguments of "print"
--- configure.ac | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 261c44c..6c019e4 100644 --- a/configure.ac +++ b/configure.ac @@ -237,8 +237,8 @@ PYTHON_PREFIX PYTHON_VERSION if test "x$PYTHON" != "xno"; then - PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` - PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` + PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"` + PYTHON_VERSION=`$PYTHON -c "import sys; print(sys.version[[0:3]])"` AC_MSG_CHECKING([for Python include path]) if test -z "$PYTHON_INCLUDEDIR"; then -- 1.7.5.4
Richard W.M. Jones
2011-Aug-24 11:53 UTC
[Libguestfs] [PATCH] hivex: Newer Python versions want parentheses around arguments of "print"
On Mon, Aug 22, 2011 at 08:45:24PM +0200, Hilko Bengen wrote:> --- > configure.ac | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 261c44c..6c019e4 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -237,8 +237,8 @@ PYTHON_PREFIX> PYTHON_VERSION> > if test "x$PYTHON" != "xno"; then > - PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` > - PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` > + PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"` > + PYTHON_VERSION=`$PYTHON -c "import sys; print(sys.version[[0:3]])"` > > AC_MSG_CHECKING([for Python include path]) > if test -z "$PYTHON_INCLUDEDIR"; then > -- > 1.7.5.4 >ACK to all of these patches. I will push them shortly. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top