Skip to content

Commit 000f13d

Browse files
committed
perf test: Address attr.py mypy error
JIRA: https://issues.redhat.com/browse/RHEL-78197 upstream ======== commit 2194446 Author: Ian Rogers <[email protected]> Date: Tue Mar 11 14:36:27 2025 -0700 description =========== ConfigParser existed in python2 but not in python3 causing mypy to fail. Whilst removing a python2 workaround remove reference to __future__. Reviewed-by: James Clark <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Michael Petlan <[email protected]>
1 parent e7275cb commit 000f13d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/perf/tests/shell/lib/attr.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
from __future__ import print_function
4-
3+
import configparser
54
import os
65
import sys
76
import glob
@@ -13,11 +12,6 @@
1312
import shutil
1413
import subprocess
1514

16-
try:
17-
import configparser
18-
except ImportError:
19-
import ConfigParser as configparser
20-
2115
def data_equal(a, b):
2216
# Allow multiple values in assignment separated by '|'
2317
a_list = a.split('|')

0 commit comments

Comments
 (0)