summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-05-30 11:01:42 +0000
committerGerrit Code Review <review@openstack.org>2013-05-30 11:01:42 +0000
commit95da21822653c878973bd267eea36b9683040d6d (patch)
treedcc9dfe1efddb05b774776006146a615dd1fb1e5 /openstack
parente9c389942d0d697484d390479155103ed74aa02d (diff)
parent35660dac73f9f7428f9c441583464b5942ca6827 (diff)
downloadoslo-95da21822653c878973bd267eea36b9683040d6d.tar.gz
oslo-95da21822653c878973bd267eea36b9683040d6d.tar.xz
oslo-95da21822653c878973bd267eea36b9683040d6d.zip
Merge "Enable hacking H401 test"
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/notifier/api.py2
-rw-r--r--openstack/common/plugin/callbackplugin.py2
-rw-r--r--openstack/common/plugin/pluginmanager.py2
-rw-r--r--openstack/common/rpc/amqp.py2
-rw-r--r--openstack/common/scheduler/base_filter.py2
-rw-r--r--openstack/common/scheduler/base_handler.py3
-rw-r--r--openstack/common/threadgroup.py6
7 files changed, 9 insertions, 10 deletions
diff --git a/openstack/common/notifier/api.py b/openstack/common/notifier/api.py
index 13ac394..7c4dbd1 100644
--- a/openstack/common/notifier/api.py
+++ b/openstack/common/notifier/api.py
@@ -56,7 +56,7 @@ class BadPriorityException(Exception):
def notify_decorator(name, fn):
- """ decorator for notify which is used from utils.monkey_patch()
+ """Decorator for notify which is used from utils.monkey_patch().
:param name: name of the function
:param function: - object of the function
diff --git a/openstack/common/plugin/callbackplugin.py b/openstack/common/plugin/callbackplugin.py
index fead44c..2de7fb0 100644
--- a/openstack/common/plugin/callbackplugin.py
+++ b/openstack/common/plugin/callbackplugin.py
@@ -58,7 +58,7 @@ class _CallbackNotifier(object):
class CallbackPlugin(plugin.Plugin):
- """ Plugin with a simple callback interface.
+ """Plugin with a simple callback interface.
This class is provided as a convenience for producing a simple
plugin that only watches a couple of events. For example, here's
diff --git a/openstack/common/plugin/pluginmanager.py b/openstack/common/plugin/pluginmanager.py
index 56064dd..3962447 100644
--- a/openstack/common/plugin/pluginmanager.py
+++ b/openstack/common/plugin/pluginmanager.py
@@ -41,7 +41,7 @@ class PluginManager(object):
"""
def __init__(self, project_name, service_name):
- """ Construct Plugin Manager; load and initialize plugins.
+ """Construct Plugin Manager; load and initialize plugins.
project_name (e.g. 'nova' or 'glance') is used
to construct the entry point that identifies plugins.
diff --git a/openstack/common/rpc/amqp.py b/openstack/common/rpc/amqp.py
index 946501b..6ac254e 100644
--- a/openstack/common/rpc/amqp.py
+++ b/openstack/common/rpc/amqp.py
@@ -183,7 +183,7 @@ class ConnectionContext(rpc_common.Connection):
class ReplyProxy(ConnectionContext):
- """ Connection class for RPC replies / callbacks """
+ """Connection class for RPC replies / callbacks."""
def __init__(self, conf, connection_pool):
self._call_waiters = {}
self._num_call_waiters = 0
diff --git a/openstack/common/scheduler/base_filter.py b/openstack/common/scheduler/base_filter.py
index 5f2fc9c..44b26ae 100644
--- a/openstack/common/scheduler/base_filter.py
+++ b/openstack/common/scheduler/base_filter.py
@@ -41,7 +41,7 @@ class BaseFilter(object):
class BaseFilterHandler(base_handler.BaseHandler):
- """ Base class to handle loading filter classes.
+ """Base class to handle loading filter classes.
This class should be subclassed where one needs to use filters.
"""
diff --git a/openstack/common/scheduler/base_handler.py b/openstack/common/scheduler/base_handler.py
index 147d90d..1808d2c 100644
--- a/openstack/common/scheduler/base_handler.py
+++ b/openstack/common/scheduler/base_handler.py
@@ -24,8 +24,7 @@ from stevedore import extension
class BaseHandler(object):
- """ Base class to handle loading filter and weight classes.
- """
+ """Base class to handle loading filter and weight classes."""
def __init__(self, modifier_class_type, modifier_namespace):
self.namespace = modifier_namespace
self.modifier_class_type = modifier_class_type
diff --git a/openstack/common/threadgroup.py b/openstack/common/threadgroup.py
index 6cafbaf..877059c 100644
--- a/openstack/common/threadgroup.py
+++ b/openstack/common/threadgroup.py
@@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
def _thread_done(gt, *args, **kwargs):
- """ Callback function to be passed to GreenThread.link() when we spawn()
+ """Callback function to be passed to GreenThread.link() when we spawn()
Calls the :class:`ThreadGroup` to notify if.
"""
@@ -34,7 +34,7 @@ def _thread_done(gt, *args, **kwargs):
class Thread(object):
- """ Wrapper around a greenthread, that holds a reference to the
+ """Wrapper around a greenthread, that holds a reference to the
:class:`ThreadGroup`. The Thread will notify the :class:`ThreadGroup` when
it has done so it can be removed from the threads list.
"""
@@ -50,7 +50,7 @@ class Thread(object):
class ThreadGroup(object):
- """ The point of the ThreadGroup classis to:
+ """The point of the ThreadGroup classis to:
* keep track of timers and greenthreads (making it easier to stop them
when need be).