Skip to content

Commit

Permalink
Remove f-string for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Feb 8, 2024
1 parent a2b6771 commit 545d8f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pwnlib/util/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 545d8f7

Please sign in to comment.