Change some formats to f-strings

As pylint recommends.
This commit is contained in:
fosslinux 2021-09-20 14:31:10 +10:00
parent 8857f53cd1
commit a8a9056f1d
3 changed files with 7 additions and 7 deletions

View file

@ -35,9 +35,9 @@ class SysC(SysGeneral):
def __del__(self):
if not self.preserve_tmp:
if not self.chroot:
print("Deleting %s" % (self.dev_name))
print(f"Deleting {self.dev_name}")
run('sudo', 'losetup', '-d', self.dev_name)
print("Unmounting tmpfs from %s" % (self.tmp_dir))
print(f"Unmounting tmpfs from {self.tmp_dir}")
umount(self.tmp_dir)
os.rmdir(self.tmp_dir)