From 7a9ed44173f9291534d935c5e4b11ddd24c01f29 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 12 Apr 2013 13:42:36 +0000 Subject: Fix clang-format-diff.py script. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179377 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-format/clang-format-diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py index 16c6ad2159..afed40fc92 100755 --- a/tools/clang-format/clang-format-diff.py +++ b/tools/clang-format/clang-format-diff.py @@ -65,7 +65,7 @@ def formatRange(r, style): text = f.read() command = [binary, '-offset', str(offset), '-length', str(length)] if style: - command.append('-style', style) + command.extend(['-style', style]) p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) stdout, stderr = p.communicate(input=text) -- cgit v1.2.3-18-g5258