]> granicus.if.org Git - clang/commitdiff
Fix the method len of the CompletionString object. Patch by Christopher Greene
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 27 Apr 2014 04:42:55 +0000 (04:42 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 27 Apr 2014 04:42:55 +0000 (04:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207348 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/clang/cindex.py

index 516f961ad061adc2e1cd4c4f5ce06020e3155197..21c3f9a8f3883ee491095866b2ffe7fe8bc17f57 100644 (file)
@@ -1993,7 +1993,7 @@ class CompletionString(ClangObject):
             return "<Availability: %s>" % self
 
     def __len__(self):
-        self.num_chunks
+        return self.num_chunks
 
     @CachedProperty
     def num_chunks(self):