From c3c77187bb82419d18331d70a9ee55eeff693dc7 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 17 Aug 2019 05:51:02 -0500 Subject: [PATCH] Fix an issue in git-clang-format that exists with Python 3.4. Issue resolved on its own by Python 3.7 (unknown when it's actually resolved) but still good to have this fix. --- third_party/clang-format/git-clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/clang-format/git-clang-format b/third_party/clang-format/git-clang-format index 1a1a5aff1..683581027 100644 --- a/third_party/clang-format/git-clang-format +++ b/third_party/clang-format/git-clang-format @@ -522,7 +522,7 @@ def apply_changes(old_tree, new_tree, force=False, patch_mode=False): def run(*args, **kwargs): - stdin = kwargs.pop('stdin', '') + stdin = kwargs.pop('stdin', to_bytes('')) verbose = kwargs.pop('verbose', True) strip = kwargs.pop('strip', True) for name in kwargs: