X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=devel%2Frelease-checks.sh;h=ae02f557af23bda8488035367d2ae8eae5f95bb6;hp=797d62acfca12f08b7bdbc8e986747844fa8ccff;hb=2bb906a6dd21fe109cc921590a512c1af7ff150d;hpb=3220230317857ae47ff64fc67240effd6cf8a76f diff --git a/devel/release-checks.sh b/devel/release-checks.sh index 797d62ac..ae02f557 100755 --- a/devel/release-checks.sh +++ b/devel/release-checks.sh @@ -130,7 +130,7 @@ else fi echo -n "Checking that python bindings version is $VERSION... " -py_version=`python -c "execfile('$PV_FILE'); print __VERSION__"` +py_version=`python -c "with open('$PV_FILE') as vf: exec(vf.read()); print __VERSION__"` if [ "$py_version" = "$VERSION" ] then echo Yes.