summaryrefslogtreecommitdiffstats
path: root/nova/process.py
diff options
context:
space:
mode:
authorandy <github@anarkystic.com>2010-08-17 11:53:30 +0000
committerTarmac <>2010-08-17 11:53:30 +0000
commitde6576d289e15935fc6ccafe9703191a01deb6c5 (patch)
tree91148914ffa20f5aa5498d40dc665d1b50a3908b /nova/process.py
parentb07a85167ffde07747fc6e892df46686b95529e8 (diff)
parentd508418214016d5c00aa8d304f9498f5b99a960b (diff)
downloadnova-de6576d289e15935fc6ccafe9703191a01deb6c5.tar.gz
nova-de6576d289e15935fc6ccafe9703191a01deb6c5.tar.xz
nova-de6576d289e15935fc6ccafe9703191a01deb6c5.zip
Fixes quite a few style issues across the entire nova codebase bringing it much closer to the guide described in HACKING.
Diffstat (limited to 'nova/process.py')
-rw-r--r--nova/process.py3
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)