distro_utils do not compare types
This patch now use isinstance to compare types.
This commit is contained in:
parent
fe25a5c752
commit
a1f8576937
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user