]> granicus.if.org Git - clang/commit
Fix Python 3 language issues and add an explicit check for Python version == 2.
authorJonathan Coe <jbcoe@me.com>
Tue, 17 Jan 2017 20:03:54 +0000 (20:03 +0000)
committerJonathan Coe <jbcoe@me.com>
Tue, 17 Jan 2017 20:03:54 +0000 (20:03 +0000)
commitabdad67b94ad4dad2d655d48ff5f81d6ccf3852e
tree0ae4eabdee0f1cbade939f85b6715d62d03a1ebc
parent372e5e8bd8e29b1beaec13968e50fddd4b5bb948
Fix Python 3 language issues and add an explicit check for Python version == 2.

Summary:
Python bindings cannot support Python 3 without work being done to fix Unicode c-string conversion.

This was attempted in https://reviews.llvm.org/D26082. That patch was reverted due to memory access issues on Linux.

This revision fixes enough language compatibility issues for the clang module to be loaded and raise an error if the Python version is not 2.

Reviewers: mgorny, MathieuDuponchelle, rengolin, compnerd

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D28682

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292247 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/__init__.py
bindings/python/clang/cindex.py