[PR #9319/c7edf0a8 backport][stable-10] become plugins: use f-strings (#9330)

become plugins: use f-strings (#9319)

* become plugins: use f-strings

* add changelog frag

(cherry picked from commit c7edf0a87b)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2024-12-23 12:25:34 +01:00 committed by GitHub
parent 3c6131b451
commit 4c26dc0760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 18 deletions

View file

@ -106,4 +106,4 @@ class BecomeModule(BecomeBase):
flags = self.get_option('become_flags')
noexe = not self.get_option('wrap_exe')
return '%s %s %s' % (exe, flags, self._build_success_command(cmd, shell, noexe=noexe))
return f'{exe} {flags} {self._build_success_command(cmd, shell, noexe=noexe)}'