[PATCH] devel/release-checks.sh: made python version check work with python 3

Subject: [PATCH] devel/release-checks.sh: made python version check work with python 3

Date: Sun, 2 Aug 2015 12:48:25 +0300

To: notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: Tomi Ollila


This trivial change consists of just putting print() argument in
parentheses.
---
 devel/release-checks.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/release-checks.sh b/devel/release-checks.sh
index efd0b3441f2e..bf0d68a444b6 100755
--- a/devel/release-checks.sh
+++ b/devel/release-checks.sh
@@ -141,7 +141,7 @@ else
 fi
 
 echo -n "Checking that python bindings version is $VERSION... "
-py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print __VERSION__"`
+py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print(__VERSION__)"`
 if [ "$py_version" = "$VERSION" ]
 then
 	echo Yes.
-- 
2.0.0


Thread: