diff options
author | Evegeny Vereshchagin <evvers@ya.ru> | 2018-06-25 21:59:28 +0000 |
---|---|---|
committer | Evegeny Vereshchagin <evvers@ya.ru> | 2018-06-25 21:59:28 +0000 |
commit | 096eec29cd93adbf1bb70a91d1f9f0d713625125 (patch) | |
tree | 82dd66227d416488e3e488e0e03459c183924dcb /tools | |
parent | coverity.sh: fix a couple indents (diff) | |
download | systemd-096eec29cd93adbf1bb70a91d1f9f0d713625125.tar.gz systemd-096eec29cd93adbf1bb70a91d1f9f0d713625125.tar.bz2 systemd-096eec29cd93adbf1bb70a91d1f9f0d713625125.zip |
coverity.sh: make the script compatible with Python 3
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/coverity.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/coverity.sh b/tools/coverity.sh index 0e04555a4..40acbb041 100755 --- a/tools/coverity.sh +++ b/tools/coverity.sh @@ -42,11 +42,11 @@ if [ "$AUTH_RES" = "Access denied" ]; then echo -e "\033[33;1mCoverity Scan API access denied. Check COVERITY_SCAN_PROJECT_NAME and COVERITY_SCAN_TOKEN.\033[0m" exit 1 else - AUTH=`echo $AUTH_RES | python -c "import sys, json; print json.load(sys.stdin)['upload_permitted']"` + AUTH=`echo $AUTH_RES | python -c "import sys, json; print(json.load(sys.stdin)['upload_permitted'])"` if [ "$AUTH" = "True" ]; then echo -e "\033[33;1mCoverity Scan analysis authorized per quota.\033[0m" else - WHEN=`echo $AUTH_RES | python -c "import sys; json; print json.load(sys.stdin)['next_upload_permitted_at']"` + WHEN=`echo $AUTH_RES | python -c "import sys; json; print(json.load(sys.stdin)['next_upload_permitted_at'])"` echo -e "\033[33;1mCoverity Scan analysis NOT authorized until $WHEN.\033[0m" exit 0 fi |