NO-JIRA: Properly wrap subclassed WrappedHandlers
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/07ea6510 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/07ea6510 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/07ea6510 Branch: refs/heads/proton-go Commit: 07ea6510cf9f5c98ebb8f9a6815871b009f0fc71 Parents: 705284b Author: Bozo Dragojevic <[email protected]> Authored: Mon Sep 21 11:54:26 2015 +0200 Committer: Bozo Dragojevic <[email protected]> Committed: Wed Sep 23 20:04:03 2015 +0200 ---------------------------------------------------------------------- proton-c/bindings/python/proton/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/07ea6510/proton-c/bindings/python/proton/__init__.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/__init__.py b/proton-c/bindings/python/proton/__init__.py index 8bdb7a3..c3890d4 100644 --- a/proton-c/bindings/python/proton/__init__.py +++ b/proton-c/bindings/python/proton/__init__.py @@ -3895,12 +3895,12 @@ class WrappedHandler(Wrapper): handlers = WrappedHandlersProperty() - @staticmethod - def wrap(impl, on_error=None): + @classmethod + def wrap(cls, impl, on_error=None): if impl is None: return None else: - handler = WrappedHandler(impl) + handler = cls(impl) handler.__dict__["on_error"] = on_error return handler --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
