Skip to content

Commit 02328bb

Browse files
committed
chore(session) Fix UP031 format specifier issue
src/libtmux/session.py:707:26: UP031 Use format specifiers instead of percent format | 705 | if target_window: 706 | if isinstance(target_window, int): 707 | target = "%s:%d" % (self.window_name, target_window) | ^^^^^^^ UP031 708 | else: 709 | target = f"{target_window}" | = help: Replace with format specifiers
1 parent a5eba0a commit 02328bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtmux/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def kill_window(self, target_window: t.Optional[str] = None) -> None:
704704
"""
705705
if target_window:
706706
if isinstance(target_window, int):
707-
target = "%s:%d" % (self.window_name, target_window)
707+
target = f"{self.window_name}:{target_window}"
708708
else:
709709
target = f"{target_window}"
710710

0 commit comments

Comments
 (0)