This commit is contained in:
Kovid Goyal 2021-10-02 04:58:47 +05:30
parent d6a43a7729
commit 3cea8f24d4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -249,7 +249,7 @@ class Child:
remove_cloexec(stdin_read_fd)
else:
stdin_read_fd = stdin_write_fd = -1
env = tuple('{}={}'.format(k, v) for k, v in self.final_env.items())
env = tuple(f'{k}={v}' for k, v in self.final_env.items())
argv = list(self.argv)
exe = argv[0]
if is_macos and exe == shell_path: