summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--tox.ini2
8 files changed, 10 insertions, 11 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).
diff --git a/tox.ini b/tox.ini
index daac6fa..521e531 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,7 +17,7 @@ commands =
[flake8]
show-source = True
-ignore = H202,H302,H304,H306,H401,H402,H403,H404
+ignore = H202,H302,H304,H306,H402,H403,H404
exclude = .venv,.tox,dist,doc,*.egg,.update-venv
[testenv:pep8]