diff options
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index 5a5f99b2598..aded301781b 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -51,7 +51,7 @@ if vim.eval('exists("g:clang_format_fallback_style")') == "1": def main(): # Get the current text. encoding = vim.eval("&encoding") - buf = [ unicode(line, encoding) for line in vim.current.buffer ] + buf = [ line.decode(encoding) for line in vim.current.buffer ] text = '\n'.join(buf) # Determine range to format. |