Skip to contentSkip to conversation

Convert remaining python scripts to python3

PATCH In review NeilBrown 2 participants 2 messages Aug 25, 2020 – Aug 31, 2020

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author reviewer
#0 lore raw

PATCH 1/1 Convert remaining python scripts to python3

nfs-utils contains 4 python scripts, two request
/usr/bin/python3
in their shebang line, two request
/usr/bin/python

Those latter two run perfectly well with python3 and as python2 is on the way out, change them so they requrest /usr/bin/python3.

---
 tools/mountstats/mountstats.py | 2 +-
 tools/nfs-iostat/nfs-iostat.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/mountstats/mountstats.py +1 -1
index 1054f698c8e3..00adc96bafeb 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Parse /proc/self/mountstats and display it in human readable form
 """
tools/nfs-iostat/nfs-iostat.py +1 -1
index 5556f692b7ee..6e59837ee673 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Emulate iostat for NFS mount points using /proc/self/mountstats
 """
Signature · 1 line
2.28.0
#1 lore raw
Quoted 10 lines · NeilBrown

nfs-utils contains 4 python scripts, two request
/usr/bin/python3
in their shebang line, two request
/usr/bin/python

Those latter two run perfectly well with python3 and as python2 is on the way out, change them so they requrest /usr/bin/python3.

Committed... (tag: nfs-utils-2-5-2-rc4)

steved.

Quoted 26 lines
---
 tools/mountstats/mountstats.py | 2 +-
 tools/nfs-iostat/nfs-iostat.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/mountstats/mountstats.py +1 -1
index 1054f698c8e3..00adc96bafeb 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Parse /proc/self/mountstats and display it in human readable form
 """
tools/nfs-iostat/nfs-iostat.py +1 -1
index 5556f692b7ee..6e59837ee673 100755
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Emulate iostat for NFS mount points using /proc/self/mountstats
 """