util/mnt: rename var to avoid future clash
Rename the local `mount` variable to `mnt` so that we can have a top level `mount` function.
This commit is contained in:
parent
b49f3f91f9
commit
a43ea66be2
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ class MountGuard(contextlib.AbstractContextManager):
|
|||
def umount(self):
|
||||
|
||||
while self.mounts:
|
||||
mount = self.mounts.pop() # FILO: get the last mount
|
||||
target = mount["target"]
|
||||
mnt = self.mounts.pop() # FILO: get the last mount
|
||||
target = mnt["target"]
|
||||
# The sync should in theory not be needed but in rare
|
||||
# cases `target is busy` error has been spotted.
|
||||
# Calling `sync` does not hurt so we keep it for now.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue