Skip to content

Commit 2194446

Browse files
captain5050namhyung
authored andcommitted
perf test: Address attr.py mypy error
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]>
1 parent 8a54784 commit 2194446

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)