summaryrefslogtreecommitdiff
path: root/tools/validate-yaml.py
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2020-03-24 10:42:05 -0500
committerGitHub <noreply@github.com>2020-03-24 11:42:05 -0400
commit9bb1ae9106ce1de4f53233faa329863c1191551a (patch)
tree6c667b13a67ed924787193ac69dc5e55584441a0 /tools/validate-yaml.py
parent04771d75a8670f07ae4c75b5892e3b795e9d1a07 (diff)
downloadvyos-cloud-init-9bb1ae9106ce1de4f53233faa329863c1191551a.tar.gz
vyos-cloud-init-9bb1ae9106ce1de4f53233faa329863c1191551a.zip
tools: use python3 (#274)
* tools: use python3 Switch tools/ to use python3 instead of python. At minimum this fixes building deb on python3 only releases like Focal. Applied via shell commands: $ grep 'usr/bin/.*python' tools/* 2>/dev/null | \ grep -v python3 | awk -F':' '{print $1}' | \ xargs -i sed -i -e '0,/python/s/python/python3/' {} * Use /usr/bin/env python3 to be virtualenv friendly
Diffstat (limited to 'tools/validate-yaml.py')
-rwxr-xr-xtools/validate-yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py
index a57ea847..d8bbcfcb 100755
--- a/tools/validate-yaml.py
+++ b/tools/validate-yaml.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Try to read a YAML file and report any errors.
"""