changeset 43825:8f26dd09aa78

mail: use procutil.shellsplit instead of bytes.split to parse command Differential Revision: https://phab.mercurial-scm.org/D7541
author Julien Cristau <jcristau@debian.org>
date Mon, 02 Dec 2019 14:44:26 +0100
parents a6483107a07a
children 5ac243a92e37
files mercurial/mail.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/mail.py	Thu Dec 05 16:18:44 2019 -0500
+++ b/mercurial/mail.py	Mon Dec 02 14:44:26 2019 +0100
@@ -197,7 +197,7 @@
         raise error.Abort(
             b'%s %s'
             % (
-                os.path.basename(program.split(None, 1)[0]),
+                os.path.basename(procutil.shellsplit(program)[0]),
                 procutil.explainexit(ret),
             )
         )