diff options
author | andy <github@anarkystic.com> | 2010-08-16 14:16:21 +0200 |
---|---|---|
committer | andy <github@anarkystic.com> | 2010-08-16 14:16:21 +0200 |
commit | d508418214016d5c00aa8d304f9498f5b99a960b (patch) | |
tree | b414d1de4b7bf688c66c3180e9e7c5478ebcbc37 /nova/process.py | |
parent | c395dd793d84d1e9a3e0ac9c9c4044c50eea6399 (diff) | |
download | nova-d508418214016d5c00aa8d304f9498f5b99a960b.tar.gz nova-d508418214016d5c00aa8d304f9498f5b99a960b.tar.xz nova-d508418214016d5c00aa8d304f9498f5b99a960b.zip |
rather comprehensive style fixes
Diffstat (limited to 'nova/process.py')
-rw-r--r-- | nova/process.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/process.py b/nova/process.py index 2dc56372f..86f29e2c4 100644 --- a/nova/process.py +++ b/nova/process.py @@ -23,6 +23,7 @@ Process pool, still buggy right now. import logging import multiprocessing import StringIO + from twisted.internet import defer from twisted.internet import error from twisted.internet import process @@ -205,6 +206,7 @@ class ProcessPool(object): self._pool.release() return rv + class SharedPool(object): _instance = None def __init__(self): @@ -213,5 +215,6 @@ class SharedPool(object): def __getattr__(self, key): return getattr(self._instance, key) + def simple_execute(cmd, **kwargs): return SharedPool().simple_execute(cmd, **kwargs) |