forked from Mirror/pmbootstrap
Use simplified Python 3.8 syntax (MR 2327)
This commit was generated with: ruff check --fix --extend-select=UP .
This commit is contained in:
parent
fa2a7c502d
commit
f3f392ef66
13 changed files with 51 additions and 60 deletions
|
@ -14,7 +14,7 @@ def ismount(folder: Path):
|
|||
Workaround for: https://bugs.python.org/issue29707
|
||||
"""
|
||||
folder = folder.resolve()
|
||||
with open("/proc/mounts", "r") as handle:
|
||||
with open("/proc/mounts") as handle:
|
||||
for line in handle:
|
||||
words = line.split()
|
||||
if len(words) >= 2 and Path(words[1]) == folder:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue