From 6a74a6a54849de97bb9118fa30d39b8bd45ba23b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 5 Jul 2020 08:12:47 -0400 Subject: [PATCH] urldetect: Fix SafeConfigParser deprecation warning It is an alias for ConfigParser in python 3.2+ plus Signed-off-by: Cole Robinson --- virtinst/install/urldetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py index c64ab6edd..a8f2abe2d 100644 --- a/virtinst/install/urldetect.py +++ b/virtinst/install/urldetect.py @@ -65,7 +65,7 @@ class _DistroCache(object): # If the file doesn't parse or there's no 'family', this will # error, but that should be fine because we aren't going to # successfully detect the tree anyways - treeinfo = configparser.SafeConfigParser() + treeinfo = configparser.ConfigParser() treeinfo.read_string(treeinfostr) self.treeinfo_family = treeinfo.get("general", "family") self._treeinfo = treeinfo