mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
urldetect: Fix SafeConfigParser deprecation warning
It is an alias for ConfigParser in python 3.2+ plus Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
fd9131e203
commit
6a74a6a548
@ -65,7 +65,7 @@ class _DistroCache(object):
|
|||||||
# If the file doesn't parse or there's no 'family', this will
|
# 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
|
# error, but that should be fine because we aren't going to
|
||||||
# successfully detect the tree anyways
|
# successfully detect the tree anyways
|
||||||
treeinfo = configparser.SafeConfigParser()
|
treeinfo = configparser.ConfigParser()
|
||||||
treeinfo.read_string(treeinfostr)
|
treeinfo.read_string(treeinfostr)
|
||||||
self.treeinfo_family = treeinfo.get("general", "family")
|
self.treeinfo_family = treeinfo.get("general", "family")
|
||||||
self._treeinfo = treeinfo
|
self._treeinfo = treeinfo
|
||||||
|
Loading…
Reference in New Issue
Block a user