Skip to content

Commit 24cefe6

Browse files
praiskupxsuchy
authored andcommitted
pylint: silence an f-string warning
Previous commit confuses the linter because we changed the name of the affected method.
1 parent 6f9518d commit 24cefe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mock/py/mockbuild/buildroot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,8 @@ def wrap_host_file(self, filename):
10301030

10311031
basename = os.path.basename(filename)
10321032
if basename in self._homedir_bindmounts:
1033-
raise BadCmdline("File '{0}' can not be bind-mounted to "
1034-
"bootstrap chroot twice".format(basename))
1033+
raise BadCmdline(f"File '{basename}' can not be bind-mounted to "
1034+
"bootstrap chroot twice")
10351035
self._homedir_bindmounts[basename] = 1
10361036

10371037
host_filename = os.path.abspath(filename)

0 commit comments

Comments
 (0)