]> git.notmuchmail.org Git - notmuch/blobdiff - devel/release-checks.sh
build: eliminate use of python execfile command
[notmuch] / devel / release-checks.sh
index 797d62acfca12f08b7bdbc8e986747844fa8ccff..ae02f557af23bda8488035367d2ae8eae5f95bb6 100755 (executable)
@@ -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.