summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
authorGregory Szorc <gregory.szorc@gmail.com>2012-03-05 00:42:15 +0000
committerGregory Szorc <gregory.szorc@gmail.com>2012-03-05 00:42:15 +0000
commit9d008fd572fa3411e93084d51f12ea12a998786c (patch)
treefc0c9c52dcb706fcd4b8e5c09f5e6bad508b3a9f /bindings/python
parenta81d3d434e6581ff354eaf5b2a3c25c75771a792 (diff)
[clang.py] Return bool from Cursor.__eq__
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/clang/cindex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py
index c93d35c57b..3b1e751ec0 100644
--- a/bindings/python/clang/cindex.py
+++ b/bindings/python/clang/cindex.py
@@ -893,7 +893,7 @@ class Cursor(Structure):
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_def.errcheck = Cursor.from_result
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]