]> granicus.if.org Git - clang/commit
[clang-format] Another attempt at python 3 compatibility
authorVedant Kumar <vsk@apple.com>
Sat, 10 Dec 2016 00:54:13 +0000 (00:54 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 10 Dec 2016 00:54:13 +0000 (00:54 +0000)
commitb81258f7ef1203761a504367995eb3ea0e0657cf
treeb34fb442a2a43473949af1fb911f67d6a8e29b9e
parent68e5066ffd1635a19d3f35daad07d686334bbaec
[clang-format] Another attempt at python 3 compatibility

The entries in vim.current.buffer appear to be decoded strings, which
means that python3 won't allow invoking 'decode' on them. Keep the old
behavior when running under python2, but skip the error-inducing decode
step with python3..

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289308 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-format/clang-format.py