Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 36415:0cb09c322647
util: factor out shellsplit() function
It turned out to be more than the simple posix=True|False flag, so let's
introduce a platform function. I also made it py3 ready.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 21 Feb 2018 22:20:27 +0900 |
parents | 01e29e885600 |
children | d26b0bedfaa4 |
line wrap: on
line diff
--- a/mercurial/util.py Fri Feb 23 23:09:58 2018 +0900 +++ b/mercurial/util.py Wed Feb 21 22:20:27 2018 +0900 @@ -147,6 +147,7 @@ setflags = platform.setflags setsignalhandler = platform.setsignalhandler shellquote = platform.shellquote +shellsplit = platform.shellsplit spawndetached = platform.spawndetached split = platform.split sshargs = platform.sshargs