|
9 | 9 | _py3 = sys.version_info > (3, 0)
|
10 | 10 |
|
11 | 11 |
|
12 |
| -class HookspecMarker: |
| 12 | +class HookspecMarker(object): |
13 | 13 | """ Decorator helper class for marking functions as hook specifications.
|
14 | 14 |
|
15 | 15 | You can instantiate it with a project_name to get a decorator.
|
@@ -47,7 +47,7 @@ def setattr_hookspec_opts(func):
|
47 | 47 | return setattr_hookspec_opts
|
48 | 48 |
|
49 | 49 |
|
50 |
| -class HookimplMarker: |
| 50 | +class HookimplMarker(object): |
51 | 51 | """ Decorator helper class for marking functions as hook implementations.
|
52 | 52 |
|
53 | 53 | You can instantiate with a project_name to get a decorator.
|
@@ -101,7 +101,7 @@ def normalize_hookimpl_opts(opts):
|
101 | 101 | opts.setdefault("optionalhook", False)
|
102 | 102 |
|
103 | 103 |
|
104 |
| -class _TagTracer: |
| 104 | +class _TagTracer(object): |
105 | 105 | def __init__(self):
|
106 | 106 | self._tag2proc = {}
|
107 | 107 | self.writer = None
|
@@ -148,7 +148,7 @@ def setprocessor(self, tags, processor):
|
148 | 148 | self._tag2proc[tags] = processor
|
149 | 149 |
|
150 | 150 |
|
151 |
| -class _TagTracerSub: |
| 151 | +class _TagTracerSub(object): |
152 | 152 | def __init__(self, root, tags):
|
153 | 153 | self.root = root
|
154 | 154 | self.tags = tags
|
@@ -188,7 +188,7 @@ def _wrapped_call(wrap_controller, func):
|
188 | 188 | return call_outcome.get_result()
|
189 | 189 |
|
190 | 190 |
|
191 |
| -class _CallOutcome: |
| 191 | +class _CallOutcome(object): |
192 | 192 | """ Outcome of a function call, either an exception or a proper result.
|
193 | 193 | Calling the ``get_result`` method will return the result or reraise
|
194 | 194 | the exception raised when the function was called. """
|
@@ -221,7 +221,7 @@ def _reraise(cls, val, tb):
|
221 | 221 | """)
|
222 | 222 |
|
223 | 223 |
|
224 |
| -class _TracedHookExecution: |
| 224 | +class _TracedHookExecution(object): |
225 | 225 | def __init__(self, pluginmanager, before, after):
|
226 | 226 | self.pluginmanager = pluginmanager
|
227 | 227 | self.before = before
|
@@ -517,7 +517,7 @@ def subset_hook_caller(self, name, remove_plugins):
|
517 | 517 | return orig
|
518 | 518 |
|
519 | 519 |
|
520 |
| -class _MultiCall: |
| 520 | +class _MultiCall(object): |
521 | 521 | """ execute a call into multiple python functions/methods. """
|
522 | 522 |
|
523 | 523 | # XXX note that the __multicall__ argument is supported only
|
@@ -611,7 +611,7 @@ def varnames(func):
|
611 | 611 | return tuple(args)
|
612 | 612 |
|
613 | 613 |
|
614 |
| -class _HookRelay: |
| 614 | +class _HookRelay(object): |
615 | 615 | """ hook holder object for performing 1:N hook calls where N is the number
|
616 | 616 | of registered plugins.
|
617 | 617 |
|
@@ -715,7 +715,7 @@ def _maybe_apply_history(self, method):
|
715 | 715 | proc(res[0])
|
716 | 716 |
|
717 | 717 |
|
718 |
| -class HookImpl: |
| 718 | +class HookImpl(object): |
719 | 719 | def __init__(self, plugin, plugin_name, function, hook_impl_opts):
|
720 | 720 | self.function = function
|
721 | 721 | self.argnames = varnames(self.function)
|
|
0 commit comments