Mercurial > hg-stable
changeset 35463:b520c8f98e1e
sshpeer: move docstring to top
Also makes it use double quotes consistently.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 18 Dec 2017 21:15:53 +0900 |
parents | 5bec509dc1ff |
children | 8652ab4046e4 |
files | mercurial/sshpeer.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Tue Dec 19 21:41:39 2017 +0900 +++ b/mercurial/sshpeer.py Mon Dec 18 21:15:53 2017 +0900 @@ -18,9 +18,9 @@ ) def _serverquote(s): + """quote a string for the remote shell ... which we assume is sh""" if not s: return s - '''quote a string for the remote shell ... which we assume is sh''' if re.match('[a-zA-Z0-9@%_+=:,./-]*$', s): return s return "'%s'" % s.replace("'", "'\\''")