X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=devel%2Frelease-checks.sh;h=ae02f557af23bda8488035367d2ae8eae5f95bb6;hb=fd80a9cac1b773d50acef42522ef767c1a2d44b7;hp=797d62acfca12f08b7bdbc8e986747844fa8ccff;hpb=5608e39a6bed25e32678b08d8f5f90bc42f451f8;p=notmuch 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.