|
75 | 75 | _py3 = sys.version_info > (3, 0)
|
76 | 76 |
|
77 | 77 |
|
78 |
| -class HookspecMarker(object): |
| 78 | +class HookspecMarker: |
79 | 79 | """ Decorator helper class for marking functions as hook specifications.
|
80 | 80 |
|
81 | 81 | You can instantiate it with a project_name to get a decorator.
|
@@ -113,7 +113,7 @@ def setattr_hookspec_opts(func):
|
113 | 113 | return setattr_hookspec_opts
|
114 | 114 |
|
115 | 115 |
|
116 |
| -class HookimplMarker(object): |
| 116 | +class HookimplMarker: |
117 | 117 | """ Decorator helper class for marking functions as hook implementations.
|
118 | 118 |
|
119 | 119 | You can instantiate with a project_name to get a decorator.
|
@@ -167,7 +167,7 @@ def normalize_hookimpl_opts(opts):
|
167 | 167 | opts.setdefault("optionalhook", False)
|
168 | 168 |
|
169 | 169 |
|
170 |
| -class _TagTracer(object): |
| 170 | +class _TagTracer: |
171 | 171 | def __init__(self):
|
172 | 172 | self._tag2proc = {}
|
173 | 173 | self.writer = None
|
@@ -214,7 +214,7 @@ def setprocessor(self, tags, processor):
|
214 | 214 | self._tag2proc[tags] = processor
|
215 | 215 |
|
216 | 216 |
|
217 |
| -class _TagTracerSub(object): |
| 217 | +class _TagTracerSub: |
218 | 218 | def __init__(self, root, tags):
|
219 | 219 | self.root = root
|
220 | 220 | self.tags = tags
|
@@ -254,7 +254,7 @@ def _wrapped_call(wrap_controller, func):
|
254 | 254 | return call_outcome.get_result()
|
255 | 255 |
|
256 | 256 |
|
257 |
| -class _CallOutcome(object): |
| 257 | +class _CallOutcome: |
258 | 258 | """ Outcome of a function call, either an exception or a proper result.
|
259 | 259 | Calling the ``get_result`` method will return the result or reraise
|
260 | 260 | the exception raised when the function was called. """
|
@@ -286,7 +286,7 @@ def _reraise(cls, val, tb):
|
286 | 286 | """)
|
287 | 287 |
|
288 | 288 |
|
289 |
| -class _TracedHookExecution(object): |
| 289 | +class _TracedHookExecution: |
290 | 290 | def __init__(self, pluginmanager, before, after):
|
291 | 291 | self.pluginmanager = pluginmanager
|
292 | 292 | self.before = before
|
@@ -580,7 +580,7 @@ def subset_hook_caller(self, name, remove_plugins):
|
580 | 580 | return orig
|
581 | 581 |
|
582 | 582 |
|
583 |
| -class _MultiCall(object): |
| 583 | +class _MultiCall: |
584 | 584 | """ execute a call into multiple python functions/methods. """
|
585 | 585 |
|
586 | 586 | # XXX note that the __multicall__ argument is supported only
|
@@ -673,7 +673,7 @@ def varnames(func, startindex=None):
|
673 | 673 | return x
|
674 | 674 |
|
675 | 675 |
|
676 |
| -class _HookRelay(object): |
| 676 | +class _HookRelay: |
677 | 677 | """ hook holder object for performing 1:N hook calls where N is the number
|
678 | 678 | of registered plugins.
|
679 | 679 |
|
@@ -770,7 +770,7 @@ def _maybe_apply_history(self, method):
|
770 | 770 | proc(res[0])
|
771 | 771 |
|
772 | 772 |
|
773 |
| -class HookImpl(object): |
| 773 | +class HookImpl: |
774 | 774 | def __init__(self, plugin, plugin_name, function, hook_impl_opts):
|
775 | 775 | self.function = function
|
776 | 776 | self.argnames = varnames(self.function)
|
|
0 commit comments