Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/util.py @ 2153:635653cd73ab
move SignalInterrupt class into util module.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 28 Apr 2006 14:50:23 -0700 |
parents | 760339ccc799 |
children | d821918e3bee |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -16,6 +16,9 @@ from demandload import * demandload(globals(), "cStringIO errno popen2 re shutil sys tempfile") demandload(globals(), "threading time") +class SignalInterrupt(Exception): + """Exception raised on SIGTERM and SIGHUP.""" + def pipefilter(s, cmd): '''filter string S through command CMD, returning its output''' (pout, pin) = popen2.popen2(cmd, -1, 'b')