From: Jonathan Coe Date: Thu, 10 Mar 2016 23:29:45 +0000 (+0000) Subject: libclang python bindings: Fix for bug 26394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eca3ce0244c8f42d4ef1926e3eadc5d93ec22243;p=clang libclang python bindings: Fix for bug 26394 Summary: https://llvm.org/bugs/show_bug.cgi?id=26394 reports that clang's python bindings tests are failing. I can confirm that the bug exists and that the proposed fix is good. Differential Revision: http://reviews.llvm.org/D17226 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263170 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index f4c7ca4986..4d450eca18 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -2383,7 +2383,7 @@ class TranslationUnit(ClangObject): functions above. __init__ is only called internally. """ assert isinstance(index, Index) - + self.index = index ClangObject.__init__(self, ptr) def __del__(self):