diff 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
line wrap: on
line diff
--- a/mercurial/windows.py	Sat Apr 07 21:09:21 2018 +0900
+++ b/mercurial/windows.py	Sat Apr 07 21:14:16 2018 +0900
@@ -311,9 +311,6 @@
         return '"' + cmd + '"'
     return cmd
 
-def explainexit(code):
-    return _("exited with status %d") % code, code
-
 # if you change this stub into a real check, please try to implement the
 # username and groupname functions above, too.
 def isowner(st):