[Jython-checkins] jython: Fixed two defective lines in PyJavaType.java

stefan.richthofer jython-checkins at python.org
Fri Oct 31 03:13:43 CET 2014


https://hg.python.org/jython/rev/2c963fc105a1
changeset:   7404:2c963fc105a1
user:        Stefan Richthofer <stefan.richthofer at gmx.de>
date:        Fri Oct 31 02:46:05 2014 +0100
summary:
  Fixed two defective lines in PyJavaType.java
These prevented successful building, c.f. Issue 1708.
Additionally out-commented code right before the
defective lines was removed as it infringes coding
style guide.

files:
  src/org/python/core/PyJavaType.java |  11 -----------
  1 files changed, 0 insertions(+), 11 deletions(-)


diff --git a/src/org/python/core/PyJavaType.java b/src/org/python/core/PyJavaType.java
--- a/src/org/python/core/PyJavaType.java
+++ b/src/org/python/core/PyJavaType.java
@@ -1054,19 +1054,8 @@
                 }
             };
             PyBuiltinMethodNarrow mapLeProxy = new MapMethod("__le__", 1) {
-//                if not isinstance(other, Set):
-//                    return NotImplemented
-//                if len(self) > len(other):
-//                    return False
-//                for elem in self:
-//                    if elem not in other:
-//                        return False
-//                return True
-
                 @Override
                 public PyObject __call__(PyObject other) {
-                    PyObject mapping =
-                    if (!Py.isInstance(other, ))
                     if (other.getType().isSubType(PyDictionary.TYPE)) {
                         PyDictionary oDict = (PyDictionary) other;
                         if (asMap().size() != oDict.size()) {

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list