summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangziwen <zzhiwen@cn.ibm.com>2020-08-23 10:26:47 +0800
committerzhangziwen <zzhiwen@cn.ibm.com>2020-08-23 10:27:26 +0800
commitefb338e00b7c3e9a53ffa0138eefa2440f4f30f7 (patch)
treebebd4a8ab8b2c14e535b6f86b03e9e8cb84d2d37
parente9204ee7b702f67c4de1c777db9482b065126407 (diff)
downloadstevedore-efb338e00b7c3e9a53ffa0138eefa2440f4f30f7.tar.gz
Fix the bug 1892610. There're some syntax errors in the comment of stevedore code.3.2.1
There is a syntax error in the comment of stevedore code. For example, in the HookManager class: :param on_load_failure_callback: Callback function that will be called when a entrypoint can not be loaded. Here should not be `a entrypoint`, just `an entrypoint` instead. Fixes: bug #1892610 Change-Id: Ic2aaf5f467bcecaec6adff1ead8e159ae749ac50
-rw-r--r--stevedore/dispatch.py2
-rw-r--r--stevedore/driver.py4
-rw-r--r--stevedore/enabled.py2
-rw-r--r--stevedore/extension.py4
-rw-r--r--stevedore/hook.py2
-rw-r--r--stevedore/named.py4
6 files changed, 9 insertions, 9 deletions
diff --git a/stevedore/dispatch.py b/stevedore/dispatch.py
index a158967..27b511f 100644
--- a/stevedore/dispatch.py
+++ b/stevedore/dispatch.py
@@ -142,7 +142,7 @@ class NameDispatchExtensionManager(DispatchExtensionManager):
then ignored
:type invoke_on_load: bool
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
diff --git a/stevedore/driver.py b/stevedore/driver.py
index 167dc67..2fd4ade 100644
--- a/stevedore/driver.py
+++ b/stevedore/driver.py
@@ -33,7 +33,7 @@ class DriverManager(NamedExtensionManager):
is True.
:type invoke_kwds: dict
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
@@ -85,7 +85,7 @@ class DriverManager(NamedExtensionManager):
and then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will
- be called when a entrypoint can not be loaded. The
+ be called when an entrypoint can not be loaded. The
arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint,
exception)
diff --git a/stevedore/enabled.py b/stevedore/enabled.py
index c2e0c03..7c12499 100644
--- a/stevedore/enabled.py
+++ b/stevedore/enabled.py
@@ -46,7 +46,7 @@ class EnabledExtensionManager(ExtensionManager):
then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
diff --git a/stevedore/extension.py b/stevedore/extension.py
index 2ccdc27..d738189 100644
--- a/stevedore/extension.py
+++ b/stevedore/extension.py
@@ -110,7 +110,7 @@ class ExtensionManager(object):
then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
@@ -156,7 +156,7 @@ class ExtensionManager(object):
are logged and then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will
- be called when a entrypoint can not be loaded. The
+ be called when an entrypoint can not be loaded. The
arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint,
exception)
diff --git a/stevedore/hook.py b/stevedore/hook.py
index 4df2b0f..4225db3 100644
--- a/stevedore/hook.py
+++ b/stevedore/hook.py
@@ -32,7 +32,7 @@ class HookManager(NamedExtensionManager):
is True.
:type invoke_kwds: dict
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
diff --git a/stevedore/named.py b/stevedore/named.py
index 3b47dfd..1be3922 100644
--- a/stevedore/named.py
+++ b/stevedore/named.py
@@ -46,7 +46,7 @@ class NamedExtensionManager(ExtensionManager):
then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when
- a entrypoint can not be loaded. The arguments that will be provided
+ an entrypoint can not be loaded. The arguments that will be provided
when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception)
:type on_load_failure_callback: function
@@ -108,7 +108,7 @@ class NamedExtensionManager(ExtensionManager):
and then ignored
:type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will
- be called when a entrypoint can not be loaded. The
+ be called when an entrypoint can not be loaded. The
arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint,
exception)