summaryrefslogtreecommitdiffstats
path: root/openstack/common/threadgroup.py
diff options
context:
space:
mode:
authorAngus Salkeld <asalkeld@redhat.com>2012-11-02 12:54:43 +1100
committerAngus Salkeld <asalkeld@redhat.com>2012-11-02 13:05:16 +1100
commit3361b58de89ab063292a1aa64f27b5bc3b43c12f (patch)
tree50935945d3cbca15d40d0b9854185ee1ee65531d /openstack/common/threadgroup.py
parent3e04c41c96fbf5916ff5ab8c3a8bfec5021f6b04 (diff)
downloadoslo-3361b58de89ab063292a1aa64f27b5bc3b43c12f.tar.gz
oslo-3361b58de89ab063292a1aa64f27b5bc3b43c12f.tar.xz
oslo-3361b58de89ab063292a1aa64f27b5bc3b43c12f.zip
Make ThreadGroup derived from object to make mocking possible
Else mox says it is not callable. Change-Id: I7ec552f2502c3328a1d87932f329d4446a361fca
Diffstat (limited to 'openstack/common/threadgroup.py')
-rw-r--r--openstack/common/threadgroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/threadgroup.py b/openstack/common/threadgroup.py
index ebc066a..8d23bda 100644
--- a/openstack/common/threadgroup.py
+++ b/openstack/common/threadgroup.py
@@ -51,7 +51,7 @@ class Thread(object):
return self.thread.wait()
-class ThreadGroup():
+class ThreadGroup(object):
"""
The point of this class is to:
- keep track of timers and greenthreads (making it easier to stop them