llvm-project/clang/bindings/python
Serge Guelton e8775ad169 [python] Make the collections import future-proof
On Python 3.7 the old code raises a warning:

	DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    	class ArgumentsIterator(collections.Sequence):

On Python 3.8 it wouldn't work anymore.

Commited on behalf of Jakub Stasiak.

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

llvm-svn: 350467
2019-01-05 12:07:36 +00:00
..
clang [python] Make the collections import future-proof 2019-01-05 12:07:36 +00:00
examples/cindex Portable Python script across Python version 2018-12-18 16:04:21 +00:00
tests Make -Wstring-plus-int warns even if when the result is not out of bounds 2019-01-03 17:45:28 +00:00
README.txt [python] [tests] Support overriding library path via environment 2018-10-11 11:58:07 +00:00

README.txt

//===----------------------------------------------------------------------===//
// Clang Python Bindings
//===----------------------------------------------------------------------===//

This directory implements Python bindings for Clang.

You may need to set CLANG_LIBRARY_PATH so that the Clang library can be
found. The unit tests are designed to be run with any standard test
runner. For example:
--
$ env PYTHONPATH=$(echo ~/llvm/tools/clang/bindings/python/) \
      CLANG_LIBRARY_PATH=$(llvm-config --libdir) \
  python -m unittest discover -v
tests.cindex.test_index.test_create ... ok
...

OK
--