NO-JIRA: remove jython2.5 compat code

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b2f2fcd9
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b2f2fcd9
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b2f2fcd9

Branch: refs/heads/proton-go
Commit: b2f2fcd9322837ea096a28ae584c8d236232c5a5
Parents: c56bcff
Author: Bozo Dragojevic <[email protected]>
Authored: Mon Sep 28 10:05:10 2015 +0200
Committer: Bozo Dragojevic <[email protected]>
Committed: Mon Sep 28 12:42:33 2015 +0200

----------------------------------------------------------------------
 proton-j/src/main/resources/cproton.py | 14 --------------
 1 file changed, 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b2f2fcd9/proton-j/src/main/resources/cproton.py
----------------------------------------------------------------------
diff --git a/proton-j/src/main/resources/cproton.py 
b/proton-j/src/main/resources/cproton.py
index 16cb660..2b2f66c 100644
--- a/proton-j/src/main/resources/cproton.py
+++ b/proton-j/src/main/resources/cproton.py
@@ -40,17 +40,3 @@ from cmessage import *
 from curl import *
 from creactor import *
 from chandlers import *
-
-# XXX: this is for compatibility, apparently the version of jython we
-# use doesn't have next, we should remove this when we upgrade
-
-_DEF = object()
-
-def next(iter, default=_DEF):
-    try:
-        return iter.next()
-    except StopIteration:
-        if default is _DEF:
-            raise
-        else:
-            return default


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to