From 24aef157aead07f813f874f43ee471b057e622cb Mon Sep 17 00:00:00 2001 From: Benjamin Cabé Date: Thu, 23 Oct 2025 17:25:08 +0200 Subject: drop support for Python 2.x as it is very much EOL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A follow-up to b96a5ad562deffa697d966c29546650aae645f48 where we stopped having CI run tests on Python 2.x. This actually drops the few remaining Python 2.x compatibility bits as Python 2.x has EOL'd a long time ago. Signed-off-by: Benjamin Cabé Signed-off-by: Torsten Rasmussen --- listnewconfig.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'listnewconfig.py') diff --git a/listnewconfig.py b/listnewconfig.py index 8276de1..18209ce 100755 --- a/listnewconfig.py +++ b/listnewconfig.py @@ -15,6 +15,7 @@ from __future__ import print_function import argparse import sys +import textwrap from kconfiglib import Kconfig, BOOL, TRISTATE, INT, HEX, STRING, TRI_TO_STR @@ -65,10 +66,8 @@ def main(): if args.show_help: for node in sym.nodes: if node.help is not None: - # Indent by two spaces. textwrap.indent() is not - # available in Python 2 (it's 3.3+). - print("\n".join(" " + line - for line in node.help.split("\n"))) + # Indent by two spaces. + print(textwrap.indent(node.help, " ")) break -- cgit v1.2.3