]> granicus.if.org Git - clang/commit
[python] Support PathLike filenames and directories
authorMichal Gorny <mgorny@gentoo.org>
Sat, 10 Nov 2018 11:41:36 +0000 (11:41 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sat, 10 Nov 2018 11:41:36 +0000 (11:41 +0000)
commit8d3c930260730d83b6a8979800135df8ccb27148
tree53238cc43e350cd879f5977bc52763dfa9ab72e2
parent4e24035ea29d2d9b4a210765a94d0615d9dd2674
[python] Support PathLike filenames and directories

Python 3.6 introduced a file system path protocol (PEP 519[1]).
The standard library APIs accepting file system paths now accept path
objects too. It could be useful to add this here as well
for convenience.

[1] https://www.python.org/dev/peps/pep-0519

Authored by: jstasiak (Jakub Stasiak)

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346586 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_cdb.py
bindings/python/tests/cindex/test_code_completion.py
bindings/python/tests/cindex/test_translation_unit.py
bindings/python/tests/cindex/util.py