Permalink
Browse files

docs/Makefile.am and m4/python.m4: Python3 portability fixes

  • Loading branch information...
1 parent 7e692ee commit 81d388780311311d8dc4a027a59d114edf9a00fc @dieterv committed Sep 9, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/Makefile.am
  2. +1 −1 m4/python.m4
View
@@ -87,7 +87,7 @@ EXTRA_DIST = \
$(CSS_FILES)
reference/builddate.xml:
- @$(PYTHON) -c 'import datetime; print datetime.date.today()' > $@
+ @$(PYTHON) -c 'import datetime; print(datetime.date.today())' > $@
if ENABLE_DOCS
View
@@ -75,7 +75,7 @@ AC_DEFUN([AM_CHECK_PYTHON_LIBS],
[AC_REQUIRE([AM_CHECK_PYTHON_HEADERS])
AC_MSG_CHECKING(for libraries required to embed python)
dnl deduce PYTHON_LIBS
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
if test "x$PYTHON_LIBS" == x; then
PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
fi

0 comments on commit 81d3887

Please sign in to comment.