Renamed l variable to location_name

This variable is renamed to avoid a warning about ambiguous name.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-25 16:42:09 +01:00
parent 5777553a96
commit bde48fe2c7

View File

@ -91,11 +91,11 @@ def get_os_sslcertfile():
correspond to non-existing filesystem objects.
"""
l = get_os_sslcertfile_searchpath()
if l is None:
location = get_os_sslcertfile_searchpath()
if location is None:
return None
for f in l:
for f in location:
assert (type(f) == type(""))
if os.path.exists(f) and (os.path.isfile(f) or os.path.islink(f)):
return f