All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nfs-utils] Convert remaining python scripts to python3
@ 2020-08-25 21:54 NeilBrown
  2020-08-31 14:59 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: NeilBrown @ 2020-08-25 21:54 UTC (permalink / raw)
  To: Steve Dickson; +Cc: Linux NFS Mailing List

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]


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.

Signed-off-by: NeilBrown <neilb@suse.de>
---
 tools/mountstats/mountstats.py | 2 +-
 tools/nfs-iostat/nfs-iostat.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py
index 1054f698c8e3..00adc96bafeb 100755
--- a/tools/mountstats/mountstats.py
+++ b/tools/mountstats/mountstats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Parse /proc/self/mountstats and display it in human readable form
 """
diff --git a/tools/nfs-iostat/nfs-iostat.py b/tools/nfs-iostat/nfs-iostat.py
index 5556f692b7ee..6e59837ee673 100755
--- a/tools/nfs-iostat/nfs-iostat.py
+++ b/tools/nfs-iostat/nfs-iostat.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- python-mode -*-
 """Emulate iostat for NFS mount points using /proc/self/mountstats
 """
-- 
2.28.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH nfs-utils] Convert remaining python scripts to python3
  2020-08-25 21:54 [PATCH nfs-utils] Convert remaining python scripts to python3 NeilBrown
@ 2020-08-31 14:59 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2020-08-31 14:59 UTC (permalink / raw)
  To: NeilBrown; +Cc: Linux NFS Mailing List



On 8/25/20 5:54 PM, NeilBrown wrote:
> 
> 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.
> 
> Signed-off-by: NeilBrown <neilb@suse.de>
Committed... (tag: nfs-utils-2-5-2-rc4)

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-31 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 21:54 [PATCH nfs-utils] Convert remaining python scripts to python3 NeilBrown
2020-08-31 14:59 ` Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.