summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Proxy.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-10-21 08:35:28 -0700
committerMark Spruiell <mes@zeroc.com>2012-10-21 08:35:28 -0700
commit1aff1c22cdd94a9790be06ec385c5e97051934bf (patch)
tree7a0ff090fc70d389cbab1e4c8887ab311e4e1f13 /py/modules/IcePy/Proxy.cpp
parentICE-3635 - static factory maps (diff)
downloadice-1aff1c22cdd94a9790be06ec385c5e97051934bf.tar.bz2
ice-1aff1c22cdd94a9790be06ec385c5e97051934bf.tar.xz
ice-1aff1c22cdd94a9790be06ec385c5e97051934bf.zip
ICE-4831 - bogus comparison operators in Python
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r--py/modules/IcePy/Proxy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp
index da2f6529526..9e462cfd550 100644
--- a/py/modules/IcePy/Proxy.cpp
+++ b/py/modules/IcePy/Proxy.cpp
@@ -124,6 +124,10 @@ proxyCompare(ProxyObject* p1, PyObject* other, int op)
break;
}
}
+ else if(other == Py_None)
+ {
+ result = op == Py_NE || op == Py_GE || op == Py_GT;
+ }
else
{
if(op == Py_EQ)