Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 667:31a9aa890016
A number of minor fixes to problems that pychecker found.
# HG changeset patch
# User mark.williamson@cl.cam.ac.uk
# Node ID 55d38977b7f2e73b8c1090179928ac96c8922b90
# Parent b3bba126b04ab2f24274a1bcf5a224c6317c8e0d
A number of minor fixes to problems that pychecker found.
author | mark.williamson@cl.cam.ac.uk |
---|---|
date | Sun, 10 Jul 2005 16:01:11 -0800 |
parents | f6c6fa15ff70 |
children | df78d8ccac4c 574869103985 |
comparison
equal
deleted
inserted
replaced
666:0100a43788ca | 667:31a9aa890016 |
---|---|
23 return "exited with status %d" % val, val | 23 return "exited with status %d" % val, val |
24 elif os.WIFSIGNALED(code): | 24 elif os.WIFSIGNALED(code): |
25 val = os.WTERMSIG(code) | 25 val = os.WTERMSIG(code) |
26 return "killed by signal %d" % val, val | 26 return "killed by signal %d" % val, val |
27 elif os.WIFSTOPPED(code): | 27 elif os.WIFSTOPPED(code): |
28 val = os.STOPSIG(code) | 28 val = os.WSTOPSIG(code) |
29 return "stopped by signal %d" % val, val | 29 return "stopped by signal %d" % val, val |
30 raise ValueError("invalid exit code") | 30 raise ValueError("invalid exit code") |
31 | 31 |
32 def system(cmd, errprefix=None): | 32 def system(cmd, errprefix=None): |
33 """execute a shell command that must succeed""" | 33 """execute a shell command that must succeed""" |