From a43ea66be2ef0fea6d276eece89f7ad657548a4e Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 9 Aug 2022 18:12:10 +0200 Subject: [PATCH] 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. --- osbuild/util/mnt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbuild/util/mnt.py b/osbuild/util/mnt.py index 4db39a0c..40753f28 100644 --- a/osbuild/util/mnt.py +++ b/osbuild/util/mnt.py @@ -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.