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:
Cole Robinson 2020-07-05 08:12:47 -04:00
parent fd9131e203
commit 6a74a6a548

View File

@ -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