Mercurial > hg > config
diff python/multiproc.py @ 601:7f189613a289
STUB: python/multiproc.py
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 30 Jan 2014 14:09:23 -0800 |
parents | a77f7022cc06 |
children | 330e3435a7d7 |
line wrap: on
line diff
--- a/python/multiproc.py Thu Jan 30 13:59:09 2014 -0800 +++ b/python/multiproc.py Thu Jan 30 14:09:23 2014 -0800 @@ -11,7 +11,12 @@ import time import tempfile -class +class Process(subprocess.Popen): + """why would you name a subprocess object Popen?""" + + def __init__(self, *args, **kwargs): + self.output = tempfile.SpooledTemporaryFile() + subprocess.Popen.__init__(self, *args, **kwargs) def main(args=sys.argv[1:]): """CLI"""