Skip to content
Snippets Groups Projects
Commit a9e1abae authored by Henning Glawe's avatar Henning Glawe
Browse files

rename ambigous 'l' to 'df_fields' (ruff fix)

parent 3a132b1b
No related branches found
No related tags found
No related merge requests found
...@@ -86,10 +86,10 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]: ...@@ -86,10 +86,10 @@ def df_mountpoint(path: pathlib.Path) -> Tuple[int, int, int]:
except: except:
return None, None, None return None, None, None
for line in output.splitlines(): for line in output.splitlines():
l = line.split() df_fields = line.split()
if (l[0] == "Filesystem"): if (df_fields[0] == "Filesystem"):
continue continue
(size, used, avail) = [int(li) for li in l[1:4]] (size, used, avail) = [int(df_field) for df_field in df_fields[1:4]]
return size, used, avail return size, used, avail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment