aboutsummaryrefslogtreecommitdiff
path: root/devel/release-checks.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-01-03 14:14:03 +0100
committerDavid Bremner <david@tethera.net>2015-01-03 15:18:54 +0100
commit2bb906a6dd21fe109cc921590a512c1af7ff150d (patch)
treefd1b413e8a46bcd0df67692a450df5a427462308 /devel/release-checks.sh
parent3220230317857ae47ff64fc67240effd6cf8a76f (diff)
build: eliminate use of python execfile command
As discussed in id:8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us, execfile is unavailable in python3. The approach of this commit avoids modifying the python module path, which is arguably preferable since it avoids potentially accidentally importing a module from the wrong place.
Diffstat (limited to 'devel/release-checks.sh')
-rwxr-xr-xdevel/release-checks.sh2
1 files changed, 1 insertions, 1 deletions
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.