summaryrefslogtreecommitdiff
path: root/olddefconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2020-01-24 21:33:47 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2020-01-24 21:33:47 +0100
commit9e0a8d29fa76adcb3f27bb2e20f16fefc2a8591e (patch)
tree8847c53e42b2692064debdd052f260508f21c0f8 /olddefconfig.py
parent424d0d38e7be15c52fae761a0a98028c4e13212d (diff)
Use 'python3' instead of 'python' in hashbangs
It's not obligatory for distributions to have a 'python' binary these days, but 'python3' is likely to be available: https://www.python.org/dev/peps/pep-0394/#for-python-runtime-distributors. Change all hashbangs to point to 'python3'. This will break running $ ./script.py on *nix systems that don't have a 'python3' executable. Changing it to $ python script.py is pretty painless at least. This change won't break Python 2 when installing via 'pip', because entry_points creates bounce scripts with their own hashbangs. The major version will be increased, in case someone looks at the major version but doesn't install via 'pip'. Fixes: #89
Diffstat (limited to 'olddefconfig.py')
-rwxr-xr-xolddefconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/olddefconfig.py b/olddefconfig.py
index a4efd9a..2dadfb4 100755
--- a/olddefconfig.py
+++ b/olddefconfig.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (c) 2018-2019, Ulf Magnusson
# SPDX-License-Identifier: ISC