distro_utils.py renamed variable f
The variable f is renamed to l_file to avoid pylint warning: utils/distro_utils.py:95:8: C0103: Variable name "f" doesn't conform to snake_case naming style (invalid-name)
This commit is contained in:
parent
b51fa3b9f6
commit
e5f0f10334
@ -89,9 +89,10 @@ def get_os_sslcertfile():
|
||||
if location is None:
|
||||
return None
|
||||
|
||||
for f in location:
|
||||
assert isinstance(f, str)
|
||||
if os.path.exists(f) and (os.path.isfile(f) or os.path.islink(f)):
|
||||
return f
|
||||
for l_file in location:
|
||||
assert isinstance(l_file, str)
|
||||
if os.path.exists(l_file) and (os.path.isfile(l_file) or
|
||||
os.path.islink(l_file)):
|
||||
return l_file
|
||||
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user