[cfe-commits] r152011 - /cfe/trunk/bindings/python/clang/cindex.py
Gregory Szorc
gregory.szorc at gmail.com
Sun Mar 4 16:42:15 PST 2012
Author: gps
Date: Sun Mar 4 18:42:15 2012
New Revision: 152011
URL: http://llvm.org/viewvc/llvm-project?rev=152011&view=rev
Log:
[clang.py] Return bool from Cursor.__eq__
Modified:
cfe/trunk/bindings/python/clang/cindex.py
Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=152011&r1=152010&r2=152011&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Sun Mar 4 18:42:15 2012
@@ -893,7 +893,7 @@
return Cursor_eq(self, other)
def __ne__(self, other):
- return not Cursor_eq(self, other)
+ return not self.__eq__(other)
def is_definition(self):
"""
@@ -1876,7 +1876,7 @@
Cursor_eq = lib.clang_equalCursors
Cursor_eq.argtypes = [Cursor, Cursor]
-Cursor_eq.restype = c_uint
+Cursor_eq.restype = bool
Cursor_hash = lib.clang_hashCursor
Cursor_hash.argtypes = [Cursor]
More information about the cfe-commits
mailing list