diff options
author | Prunus <nobody@localhost> | 2020-10-18 16:29:29 +0200 |
---|---|---|
committer | nobody <nobody@localhost> | 2020-10-18 16:31:57 +0200 |
commit | 3ed9244af3b1161064c36a3ab4749ef82faba2b0 (patch) | |
tree | b7e0d8c59f439c5b6bc7cd263d83a986ad55758c | |
parent | 91508d030f6952b6e7a571deda0e72b62d4b6aba (diff) |
Use "env" and python3 for shebangs
Python 2 has reached end-of-life so Python 3 should be the default as of 2020.
Also, "env" shebangs are the recommended way for Python:
https://docs.python.org/3/tutorial/appendix.html#tut-scripts
https://docs.python.org/3/using/unix.html#miscellaneous
-rwxr-xr-x | setup.py | 2 | ||||
-rwxr-xr-x | test/fuzz-mime.py | 2 | ||||
-rwxr-xr-x | test/menu-spec/menutest.py | 2 | ||||
-rw-r--r-- | test/test-desktop.py | 2 | ||||
-rw-r--r-- | test/test-icon.py | 2 | ||||
-rw-r--r-- | test/test-inifile.py | 2 | ||||
-rw-r--r-- | test/test-menu.py | 2 |
7 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from distutils.core import setup diff --git a/test/fuzz-mime.py b/test/fuzz-mime.py index f33c875..d49cd09 100755 --- a/test/fuzz-mime.py +++ b/test/fuzz-mime.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Run this manually to test xdg.Mime.get_type2 against all files in a directory. Syntax: ./fuzz-mime.py /dir/to/test/ diff --git a/test/menu-spec/menutest.py b/test/menu-spec/menutest.py index 4688ab4..2223904 100755 --- a/test/menu-spec/menutest.py +++ b/test/menu-spec/menutest.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/env python3 # coding=utf8 """ Script to run the xdg menu-spec tests: diff --git a/test/test-desktop.py b/test/test-desktop.py index e73ea5a..9f88af6 100644 --- a/test/test-desktop.py +++ b/test/test-desktop.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # coding: utf-8 from xdg.DesktopEntry import DesktopEntry from xdg.Exceptions import ValidationError, ParsingError, NoKeyError diff --git a/test/test-icon.py b/test/test-icon.py index 4ff0d60..5a2731b 100644 --- a/test/test-icon.py +++ b/test/test-icon.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from xdg.IconTheme import IconTheme, getIconPath, getIconData import tempfile, shutil, os import unittest diff --git a/test/test-inifile.py b/test/test-inifile.py index bc78ec0..6390bbb 100644 --- a/test/test-inifile.py +++ b/test/test-inifile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # coding: utf-8 from xdg import IniFile from xdg.util import u diff --git a/test/test-menu.py b/test/test-menu.py index f98e218..0139534 100644 --- a/test/test-menu.py +++ b/test/test-menu.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from __future__ import print_function import io |