Skip to content

Commit

Permalink
Python3: replaced ConfigParser module
Browse files Browse the repository at this point in the history
Signed-off-by: Kowshik Jois B S <[email protected]>
  • Loading branch information
bskjois committed Sep 23, 2024
1 parent b7ca5fd commit 5b48849
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virttest/utils_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,10 @@ def config_control(control_path, job_args=None):
except Exception:
# Leak global_config.ini, generate a mini configuration
# to ensure client tests can work.
import ConfigParser
try:
import configparser as ConfigParser
except ImportError:
import ConfigParser

config = ConfigParser.ConfigParser()
for section in ["CLIENT", "COMMON"]:
Expand Down

0 comments on commit 5b48849

Please sign in to comment.