Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix inheritence hierarchy of DriverManager

Change-Id: I4c85d42a800186da4beeac13acd7a07d4223fa90
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
  • Loading branch information...
commit d32fa18efe7528cb2ff779081303ff240bb47209 1 parent cfb1f11
@dhellmann dhellmann authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 stevedore/driver.py
View
10 stevedore/driver.py
@@ -1,7 +1,7 @@
-from .hook import HookManager
+from .named import NamedExtensionManager
-class DriverManager(HookManager):
+class DriverManager(NamedExtensionManager):
"""Load a single plugin with a given name from the namespace.
:param namespace: The namespace for the entry points.
@@ -23,9 +23,9 @@ class DriverManager(HookManager):
def __init__(self, namespace, name,
invoke_on_load=False, invoke_args=(), invoke_kwds={}):
- super(HookManager, self).__init__(
- namespace,
- [name],
+ super(DriverManager, self).__init__(
+ namespace=namespace,
+ names=[name],
invoke_on_load=invoke_on_load,
invoke_args=invoke_args,
invoke_kwds=invoke_kwds,
Please sign in to comment.
Something went wrong with that request. Please try again.