Re: [PATCH] perf tools: Stop using the deprecated argparse.FileType
From: Namhyung Kim
Date: Sun Nov 29 2026 - 18:42:21 EST
On Sun, 15 Nov 2026 00:35:07 +0000, Lalit Maganti wrote:
> Python 3.14 deprecates argparse.FileType, and pylint 4 warns about each
> use of it. The perf build runs pylint and treats its warnings as errors,
> so the default build fails:
>
> pmu-events/jevents.py:1494:26: W4904: Using deprecated class FileType of module argparse (deprecated-class)
> pmu-events/jevents.py:1496:33: W4904: Using deprecated class FileType of module argparse (deprecated-class)
> tests/shell/lib/perf_json_output_lint.py:23:31: W4904: Using deprecated class FileType of module argparse (deprecated-class)
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung