diff options
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rwxr-xr-x | cpp/src/Slice/PythonUtil.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 8a9d96da270..08c30f4d2df 100755 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -1244,7 +1244,14 @@ Slice::Python::CodeVisitor::visitStructStart(const StructPtr& p) _out.dec(); _out << nl << "elif other == None:"; _out.inc(); - _out << nl << "return False"; + if(opName == "__ne__") + { + _out << nl << "return True"; + } + else + { + _out << nl << "return False"; + } _out.dec(); _out << nl << "return NotImplemented"; _out.dec(); |