perf test: Address attr.py mypy error
authorIan Rogers <irogers@google.com>
Tue, 11 Mar 2025 21:36:27 +0000 (14:36 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 24 Mar 2025 16:38:20 +0000 (09:38 -0700)
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 <james.clark@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250311213628.569562-6-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/lib/attr.py

index 3db9a7d78715f1d941a7af0f8d667049a82f97c4..bfccc727d9b25e29f102c62b0ba527dacaa08aae 100644 (file)
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
-from __future__ import print_function
-
+import configparser
 import os
 import sys
 import glob
@@ -13,11 +12,6 @@ import re
 import shutil
 import subprocess
 
-try:
-    import configparser
-except ImportError:
-    import ConfigParser as configparser
-
 def data_equal(a, b):
     # Allow multiple values in assignment separated by '|'
     a_list = a.split('|')