mercurial/utils/procutil.py
changeset 46030 2cf61e66c6d0
parent 45942 89a2afe31e82
parent 46019 fdd54a876213
child 46083 81c1f5d1801f
--- 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,