]> granicus.if.org Git - clang/commit
Merging r292247:
authorHans Wennborg <hans@hanshq.net>
Wed, 18 Jan 2017 04:45:43 +0000 (04:45 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 18 Jan 2017 04:45:43 +0000 (04:45 +0000)
commit3a631d565d41270fa80cb3d1e43a50d24cfc2f20
tree9ba71ef1efbebba5227d02926bdbf35cbd61b63a
parent4077c4b193467c625c86757e456f96c45d65e608
Merging r292247:
------------------------------------------------------------------------
r292247 | jbcoe | 2017-01-17 12:03:54 -0800 (Tue, 17 Jan 2017) | 14 lines

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/branches/release_40@292339 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/__init__.py
bindings/python/clang/cindex.py