Fix the bug 1892610. There're some syntax errors in the comment of stevedore code.

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
This commit is contained in:
zhangziwen 2020-08-23 10:26:47 +08:00
parent e9204ee7b7
commit efb338e00b
6 changed files with 9 additions and 9 deletions

View File

@ -142,7 +142,7 @@ class NameDispatchExtensionManager(DispatchExtensionManager):
then ignored then ignored
:type invoke_on_load: bool :type invoke_on_load: bool
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function

View File

@ -33,7 +33,7 @@ class DriverManager(NamedExtensionManager):
is True. is True.
:type invoke_kwds: dict :type invoke_kwds: dict
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function
@ -85,7 +85,7 @@ class DriverManager(NamedExtensionManager):
and then ignored and then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will :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 arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint, an entrypoint fails to load) are (manager, entrypoint,
exception) exception)

View File

@ -46,7 +46,7 @@ class EnabledExtensionManager(ExtensionManager):
then ignored then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function

View File

@ -110,7 +110,7 @@ class ExtensionManager(object):
then ignored then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function
@ -156,7 +156,7 @@ class ExtensionManager(object):
are logged and then ignored are logged and then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will :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 arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint, an entrypoint fails to load) are (manager, entrypoint,
exception) exception)

View File

@ -32,7 +32,7 @@ class HookManager(NamedExtensionManager):
is True. is True.
:type invoke_kwds: dict :type invoke_kwds: dict
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function

View File

@ -46,7 +46,7 @@ class NamedExtensionManager(ExtensionManager):
then ignored then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will be called when :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 when this is called (when an entrypoint fails to load) are
(manager, entrypoint, exception) (manager, entrypoint, exception)
:type on_load_failure_callback: function :type on_load_failure_callback: function
@ -108,7 +108,7 @@ class NamedExtensionManager(ExtensionManager):
and then ignored and then ignored
:type propagate_map_exceptions: bool :type propagate_map_exceptions: bool
:param on_load_failure_callback: Callback function that will :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 arguments that will be provided when this is called (when
an entrypoint fails to load) are (manager, entrypoint, an entrypoint fails to load) are (manager, entrypoint,
exception) exception)