linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bno_plot.py: Ask for python3 specifically
@ 2022-09-28 20:55 Sakib Sajal
  2022-09-29  1:39 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Sakib Sajal @ 2022-09-28 20:55 UTC (permalink / raw)
  To: linux-btrace

python2 is deprecated, use python3.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
 btt/bno_plot.py | 2 +-
 btt/btt_plot.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/btt/bno_plot.py b/btt/bno_plot.py
index 3aa4e19..d7d7159 100644
--- a/btt/bno_plot.py
+++ b/btt/bno_plot.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 #
 # btt blkno plotting interface
 #
diff --git a/btt/btt_plot.py b/btt/btt_plot.py
index 40bc71f..8620d31 100755
--- a/btt/btt_plot.py
+++ b/btt/btt_plot.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 #
 # btt_plot.py: Generate matplotlib plots for BTT generate data files
 #
-- 
2.25.1

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

* Re: [PATCH] bno_plot.py: Ask for python3 specifically
  2022-09-28 20:55 [PATCH] bno_plot.py: Ask for python3 specifically Sakib Sajal
@ 2022-09-29  1:39 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2022-09-29  1:39 UTC (permalink / raw)
  To: linux-btrace

On 9/28/22 2:55 PM, Sakib Sajal wrote:
> python2 is deprecated, use python3.

Why isn't python just python3 on a distro that has deprecated
python2? It's not like we're asking for python2, just python.

On my laptop:

axboe@m1max ~> which python
/usr/bin/python
axboe@m1max ~> /usr/bin/python --version
Python 3.10.7
axboe@m1max ~> env python
Python 3.10.7 (main, Sep  8 2022, 14:34:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

-- 
Jens Axboe

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

end of thread, other threads:[~2022-09-29  1:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 20:55 [PATCH] bno_plot.py: Ask for python3 specifically Sakib Sajal
2022-09-29  1:39 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).