[PATCH] (Trivial) fix to util.py

Mark Williamson mark.williamson at cl.cam.ac.uk
Mon Aug 15 14:41:14 CDT 2005


# HG changeset patch
# User mark.williamson at cl.cam.ac.uk
# Node ID 18d711dc679eadd2e5e67c7a4a219b76896f5d18
# Parent  891b6a262c4bd0ddc770d965ff5c94602c758b7e
Minor tweak: os.STOPSIG -> os.WSTOPSIG.  Pychecker spotted this one.

diff -r 891b6a262c4b -r 18d711dc679e mercurial/util.py
--- a/mercurial/util.py	Mon Aug 15 06:00:16 2005
+++ b/mercurial/util.py	Mon Aug 15 19:35:21 2005
@@ -276,6 +276,6 @@
             val = os.WTERMSIG(code)
             return "killed by signal %d" % val, val
         elif os.WIFSTOPPED(code):
-            val = os.STOPSIG(code)
+            val = os.WSTOPSIG(code)
             return "stopped by signal %d" % val, val
         raise ValueError("invalid exit code")


More information about the Mercurial mailing list