[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)
commit0972da7870d7bf9a3ac1d47246db5c62f28e671a
tree32235e0316268aacd808e6d2a73c445b5fe55020
parent2402b95db010e80f76804f07e0f59ffcae42fbdb
[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..

llvm-svn: 289308
clang/tools/clang-format/clang-format.py