equal
deleted
inserted
replaced
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. |