distro_utils do not compare types

This patch now use isinstance to compare types.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-25 17:27:40 +01:00
parent fe25a5c752
commit a1f8576937

View File

@ -94,7 +94,7 @@ def get_os_sslcertfile():
return None return None
for f in location: for f in location:
assert (type(f) == type("")) assert isinstance(f, str)
if os.path.exists(f) and (os.path.isfile(f) or os.path.islink(f)): if os.path.exists(f) and (os.path.isfile(f) or os.path.islink(f)):
return f return f