From 39349e5fa9d4662d789578105bde5cce10e824b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 3 Jul 2023 22:04:47 +0200 Subject: [PATCH] Replace removed SafeConfigParser with ConfigParser See https://docs.python.org/3.12/whatsnew/3.12.html#removed --- stestr/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stestr/commands/run.py b/stestr/commands/run.py index 4afb8b5..b6d39a1 100644 --- a/stestr/commands/run.py +++ b/stestr/commands/run.py @@ -473,7 +473,7 @@ def run_command( if not os.path.isfile(config) and not test_path: # If there is no config and no test-path if os.path.isfile("tox.ini"): - tox_conf = configparser.SafeConfigParser() + tox_conf = configparser.ConfigParser() tox_conf.read("tox.ini") if not tox_conf.has_section("stestr"): msg = (