--- a/mercurial/utils/procutil.py Wed Dec 02 12:33:51 2020 -0800
+++ b/mercurial/utils/procutil.py Thu Dec 03 14:15:39 2020 -0500
@@ -656,7 +656,7 @@
stdin.seek(0)
p = subprocess.Popen(
- tonativestr(script),
+ pycompat.rapply(tonativestr, script),
shell=shell,
env=tonativeenv(env),
close_fds=True,