]> git.itanic.dy.fi Git - linux-stable/commit
perf test attr: Fix python SafeConfigParser() deprecation warning
authorIan Rogers <irogers@google.com>
Wed, 17 May 2023 22:57:06 +0000 (15:57 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 May 2023 13:36:35 +0000 (10:36 -0300)
commit75438f24a4d4adcaea6f04ad3a94b7a145e63327
tree51c53f224c794dc40fc38bde9aaadcf915fd30aa
parent951efb9976ce453342a86b29d7bfe9fa483c7c4d
perf test attr: Fix python SafeConfigParser() deprecation warning

Address the warning:
```
tests/attr.py:155: DeprecationWarning: The SafeConfigParser class has
  been renamed to ConfigParser in Python 3.2. This alias will be
  removed in Python 3.12. Use ConfigParser directly instead.
parser = configparser.SafeConfigParser()
```
by removing the word 'Safe'.

Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Link: https://lore.kernel.org/r/20230517225707.2682235-2-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/attr.py