summaryrefslogtreecommitdiff
path: root/hacking/yamlcheck.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2016-11-02 14:47:42 -0700
committerMatt Clay <matt@mystile.com>2016-11-02 17:00:27 -0700
commit0d46805979646ce3a6f0225e804a73f552cd5296 (patch)
tree8a92e9b753c193ba81ee588573de370537bdcda7 /hacking/yamlcheck.py
parent702ac436dc1b1c4c4d64ce9971d670a1df4308a4 (diff)
downloadansible-0d46805979646ce3a6f0225e804a73f552cd5296.tar.gz
Clean up shebangs for various files.
- Remove shebangs from: - ini files - unit tests - module_utils - plugins - module_docs_fragments - non-executable Makefiles - Change non-modules from '/usr/bin/python' to '/usr/bin/env python'. - Change '/bin/env' to '/usr/bin/env'. Also removed main functions from unit tests (since they no longer have a shebang) and fixed a python 3 compatibility issue with update_bundled.py so it does not need to specify a python 2 shebang. A script was added to check for unexpected shebangs in files. This script is run during CI on Shippable.
Diffstat (limited to 'hacking/yamlcheck.py')
-rwxr-xr-xhacking/yamlcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hacking/yamlcheck.py b/hacking/yamlcheck.py
index c66d70db13..68d796cb1a 100755
--- a/hacking/yamlcheck.py
+++ b/hacking/yamlcheck.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# long version of this one liner: python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < yamltest.txt
import yaml
import sys