summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALL4
-rwxr-xr-xpy/setup.py2
-rw-r--r--py/src/nftables.py2
-rwxr-xr-xtests/json_echo/run-test.py2
-rwxr-xr-xtests/py/nft-test.py2
-rwxr-xr-xtests/shell/helpers/json-pretty.sh4
6 files changed, 8 insertions, 8 deletions
diff --git a/INSTALL b/INSTALL
index 0c48c989..05282a44 100644
--- a/INSTALL
+++ b/INSTALL
@@ -93,11 +93,11 @@ Installation instructions for nftables
CPython bindings are available for nftables under the py/ folder. They can be
installed using pip:
- python -m pip install py/
+ python3 -m pip install py/
A legacy setup.py script can also be used:
- ( cd py && python setup.py install )
+ ( cd py && python3 setup.py install )
However, this method is deprecated.
diff --git a/py/setup.py b/py/setup.py
index beda28e8..229b2ebb 100755
--- a/py/setup.py
+++ b/py/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from setuptools import setup
diff --git a/py/src/nftables.py b/py/src/nftables.py
index f1e43ade..abb4fc9a 100644
--- a/py/src/nftables.py
+++ b/py/src/nftables.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright(C) 2018 Phil Sutter <phil@nwl.cc>
# This program is free software; you can redistribute it and/or modify
diff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py
index 7d0eca0a..ed8360bc 100755
--- a/tests/json_echo/run-test.py
+++ b/tests/json_echo/run-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
from __future__ import print_function
import sys
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py
index ff2412ac..53fd3f7a 100755
--- a/tests/py/nft-test.py
+++ b/tests/py/nft-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# (C) 2014 by Ana Rey Botello <anarey@gmail.com>
#
diff --git a/tests/shell/helpers/json-pretty.sh b/tests/shell/helpers/json-pretty.sh
index 31739b02..e8679583 100755
--- a/tests/shell/helpers/json-pretty.sh
+++ b/tests/shell/helpers/json-pretty.sh
@@ -1,7 +1,7 @@
#!/bin/bash -e
exec_pretty() {
- # The output of this command must be stable (and `jq` and python
+ # The output of this command must be stable (and `jq` and python3
# fallback must generate the same output.
if command -v jq &>/dev/null ; then
@@ -9,7 +9,7 @@ exec_pretty() {
exec jq
fi
- # Fallback to python.
+ # Fallback to python3.
exec python3 -c '
import json
import sys