diff mercurial/sshpeer.py @ 35459: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 31d21309635b
children f7ef49e44d7c
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("'", "'\\''")