From d542eb95abdfa0338f0d531e53f4e913cbeef8ec Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Thu, 8 Feb 2024 10:41:16 +0100 Subject: [PATCH] Remote f-string for Python 2 --- pwnlib/util/misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnlib/util/misc.py b/pwnlib/util/misc.py index 188be34578..d0780ed6e2 100644 --- a/pwnlib/util/misc.py +++ b/pwnlib/util/misc.py @@ -417,16 +417,16 @@ def run_in_new_terminal(command, terminal=None, args=None, kill_at_exit=True, pr # `command` was sanitized on the previous step. It is now either a string, or was written to a tmp file # we run the command, which is now `argv[-1]` if terminal == 'osascript': - osa_script = f""" + osa_script = """ tell application "iTerm" tell current session of current window set newSession to (split horizontally with default profile) end tell tell newSession - write text "{argv[-1]}" + write text "{}" end tell end tell -""" +""".format(argv[-1]) with tempfile.NamedTemporaryFile(delete=False, mode='wt+') as tmp: tmp.write(osa_script.lstrip()) tmp.flush()