mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03: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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user