qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [01/13] qpid-proton git commit: PROTON-1385: remove java/jython specific codeblock from proton-c python wrapper
Date Tue, 07 Feb 2017 20:52:11 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/go1 5c4f4d7f4 -> ed8e879f6


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/go1
Commit: 21caa13cc6d67089fba4ce22651abd2ec12d6785
Parents: 71e567d
Author: Robert Gemmell <robbie@apache.org>
Authored: Wed Jan 18 14:44:59 2017 +0000
Committer: Robert Gemmell <robbie@apache.org>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message