mercurial/windows.py
changeset 44866 5258bffdb1d6
parent 44452 9d2b2df2c2ba
child 44867 8e8fd938ca07
equal deleted inserted replaced
44865:233ee525dcef 44866:5258bffdb1d6
   474     return pycompat.maplist(_unquote, pycompat.shlexsplit(s, posix=False))
   474     return pycompat.maplist(_unquote, pycompat.shlexsplit(s, posix=False))
   475 
   475 
   476 
   476 
   477 def quotecommand(cmd):
   477 def quotecommand(cmd):
   478     """Build a command string suitable for os.popen* calls."""
   478     """Build a command string suitable for os.popen* calls."""
   479     if sys.version_info < (2, 7, 1):
       
   480         # Python versions since 2.7.1 do this extra quoting themselves
       
   481         return b'"' + cmd + b'"'
       
   482     return cmd
   479     return cmd
   483 
   480 
   484 
   481 
   485 # if you change this stub into a real check, please try to implement the
   482 # if you change this stub into a real check, please try to implement the
   486 # username and groupname functions above, too.
   483 # username and groupname functions above, too.