Skip to content

Address some issues related to Python version

Mauro Carvalho Chehab bpf linux-doc linux-kselftest linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6docs: trace: decode_msr.py: make it compatible with python 3Documentation/trace/postprocess/decode_msr.py+1 -10 replies
2/6tools: perf: exported-sql-viewer: drop support for Python 2tools/perf/tests/shell/lib/attr.py+1 -50 replies
3/6tools: perf: tools: perf: exported-sql-viewer: drop support for Python 2tools/perf/scripts/python/exported-sql-viewer.py+2 -32 replies
4/6tools: perf: task-analyzer: drop support for Python 2tools/perf/scripts/python/task-analyzer.py+5 -180 replies
5/6tools: selftests/bpf: test_bpftool_synctypes: escape raw symbolstools/testing/selftests/bpf/test_bpftool_synctypes.py+15 -151 reply
6/6comedi: convert_csv_to_c.py: use r-string for a regex expressiondrivers/comedi/drivers/ni_routing/tools/convert_csv_to_c.py+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Address some issues related to Python version

This series remove compatibility with Python 2.x from scripts that have some backward compatibility logic on it. The rationale is that, since commit 627395716cc3 ("docs: document python version used for compilation"), the minimal Python version was set to 3.x. Also, Python 2.x is EOL since Jan, 2020.

Patch 1: fix a script that was compatible only with Python 2.x; Patches 2-4: remove backward-compat code;
Patches 5-6 solves forward-compat with modern Python which warns about using
raw strings without using "r" format.

Mauro Carvalho Chehab (6):
docs: trace: decode_msr.py: make it compatible with python 3
tools: perf: exported-sql-viewer: drop support for Python 2
tools: perf: tools: perf: exported-sql-viewer: drop support for Python

    2

tools: perf: task-analyzer: drop support for Python 2
tools: selftests/bpf: test_bpftool_synctypes: escape raw symbols
comedi: convert_csv_to_c.py: use r-string for a regex expression

 Documentation/trace/postprocess/decode_msr.py |  2 +-
 .../ni_routing/tools/convert_csv_to_c.py      |  2 +-
 .../scripts/python/exported-sql-viewer.py     |  5 ++--
 tools/perf/scripts/python/task-analyzer.py    | 23 ++++----------
 tools/perf/tests/shell/lib/attr.py            |  6 +---
 .../selftests/bpf/test_bpftool_synctypes.py   | 30 +++++++++----------
 6 files changed, 25 insertions(+), 43 deletions(-)
Signature · 1 line
2.48.1