diff options
Diffstat (limited to 'tags/s/script-uses-unversioned-python-in-shebang.tag')
-rw-r--r-- | tags/s/script-uses-unversioned-python-in-shebang.tag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tags/s/script-uses-unversioned-python-in-shebang.tag b/tags/s/script-uses-unversioned-python-in-shebang.tag new file mode 100644 index 0000000..7ae27f2 --- /dev/null +++ b/tags/s/script-uses-unversioned-python-in-shebang.tag @@ -0,0 +1,12 @@ +Tag: script-uses-unversioned-python-in-shebang +Severity: error +Check: languages/python/scripts +Explanation: This package contains a script with unversioned Python shebang. + . + This package contains a script with unversioned Python shebang and thus + defaults to using Python 2. The 2.x series of Python is deprecated and apart + from rare cases, will not be supported in Debian Bullseye. + . + If the script in question is compatible with Python 3, please modify it to use + <code>/usr/bin/python3</code> instead. If it only is Python 2 compatible, + please modify it to use <code>/usr/bin/python2</code>. |