Repository: qpid-proton Updated Branches: refs/heads/master 71e567d90 -> 21caa13cc
PROTON-1385: remove java/jython specific codeblock from proton-c python wrapper Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/21caa13c Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/21caa13c Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/21caa13c Branch: refs/heads/master Commit: 21caa13cc6d67089fba4ce22651abd2ec12d6785 Parents: 71e567d Author: Robert Gemmell <[email protected]> Authored: Wed Jan 18 14:44:59 2017 +0000 Committer: Robert Gemmell <[email protected]> Committed: Wed Jan 18 14:47:00 2017 +0000 ---------------------------------------------------------------------- proton-c/bindings/python/proton/wrapper.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/21caa13c/proton-c/bindings/python/proton/wrapper.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/wrapper.py b/proton-c/bindings/python/proton/wrapper.py index eff917b..8519646 100644 --- a/proton-c/bindings/python/proton/wrapper.py +++ b/proton-c/bindings/python/proton/wrapper.py @@ -105,10 +105,5 @@ class Wrapper(object): id(self), addressof(self._impl)) -if pn_py2void(Wrapper) is Wrapper: - PYCTX = Wrapper - import java.lang.System - addressof = java.lang.System.identityHashCode -else: - PYCTX = int(pn_py2void(Wrapper)) - addressof = int +PYCTX = int(pn_py2void(Wrapper)) +addressof = int --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
