comparison mercurial/windows.py @ 37460:a6c6b7beb025

procutil: unify platform.explainexit() Since 4368f582c806 "use subprocess instead of os.system", posix.explainexit() is the superset of Windows implementation.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 07 Apr 2018 21:14:16 +0900
parents 90c5ca718781
children 3efadf2317c7 3a0f322af192
comparison
equal deleted inserted replaced
37459:90c5ca718781 37460:a6c6b7beb025
309 if sys.version_info < (2, 7, 1): 309 if sys.version_info < (2, 7, 1):
310 # Python versions since 2.7.1 do this extra quoting themselves 310 # Python versions since 2.7.1 do this extra quoting themselves
311 return '"' + cmd + '"' 311 return '"' + cmd + '"'
312 return cmd 312 return cmd
313 313
314 def explainexit(code):
315 return _("exited with status %d") % code, code
316
317 # if you change this stub into a real check, please try to implement the 314 # if you change this stub into a real check, please try to implement the
318 # username and groupname functions above, too. 315 # username and groupname functions above, too.
319 def isowner(st): 316 def isowner(st):
320 return True 317 return True
321 318