Skip to content

Commit 545d8f7

Browse files
committed
Remove f-string for Python 2
1 parent a2b6771 commit 545d8f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pwnlib/util/misc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,16 @@ def run_in_new_terminal(command, terminal=None, args=None, kill_at_exit=True, pr
417417
# `command` was sanitized on the previous step. It is now either a string, or was written to a tmp file
418418
# we run the command, which is now `argv[-1]`
419419
if terminal == 'osascript':
420-
osa_script = f"""
420+
osa_script = """
421421
tell application "iTerm"
422422
tell current session of current window
423423
set newSession to (split horizontally with default profile)
424424
end tell
425425
tell newSession
426-
write text "{argv[-1]}"
426+
write text "{}"
427427
end tell
428428
end tell
429-
"""
429+
""".format(argv[-1])
430430
with tempfile.NamedTemporaryFile(delete=False, mode='wt+') as tmp:
431431
tmp.write(osa_script.lstrip())
432432
tmp.flush()

0 commit comments

Comments
 (0)