summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-09-09 14:57:58 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-09-09 19:29:54 +0200
commit81d388780311311d8dc4a027a59d114edf9a00fc (patch)
tree756248aa99fc95b8ef8eca764ff07716f2f7195a
parent7e692ee061406e48e4862b98a0829650b1d6d585 (diff)
downloadpygobject-81d388780311311d8dc4a027a59d114edf9a00fc.tar.gz
docs/Makefile.am and m4/python.m4: Python3 portability fixes
https://bugzilla.gnome.org/show_bug.cgi?id=658652
-rw-r--r--docs/Makefile.am2
-rw-r--r--m4/python.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 82aef9f3..b9086a9f 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -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
diff --git a/m4/python.m4 b/m4/python.m4
index 968b9a60..7c902752 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -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