Mercurial > public > mercurial-scm > hg-stable
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 Fri Apr 28 12:38:11 2006 +0200 +++ b/mercurial/util.py Fri Apr 28 14:50:23 2006 -0700 @@ -16,6 +16,9 @@ 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')