seanptmaher updated this revision to Diff 487243.
seanptmaher added a comment.

Update python formatting


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141230/new/

https://reviews.llvm.org/D141230

Files:
  clang/tools/clang-format/clang-format-diff.py


Index: clang/tools/clang-format/clang-format-diff.py
===================================================================
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -147,11 +147,11 @@
         if args.fallback_style:
           command.extend(['-fallback-style', args.fallback_style])
         try:
-          procs[i] = (subprocess.Popen(command,
-                                        stdout=subprocess.PIPE,
-                                        stderr=None,
-                                        stdin=subprocess.PIPE,
-                                        universal_newlines=True))
+          procs[i] = subprocess.Popen(command,
+                                      stdout=subprocess.PIPE,
+                                      stderr=None,
+                                      stdin=subprocess.PIPE,
+                                      universal_newlines=True)
         except OSError as e:
           # Give the user more context when clang-format isn't
           # found/isn't executable, etc.


Index: clang/tools/clang-format/clang-format-diff.py
===================================================================
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -147,11 +147,11 @@
         if args.fallback_style:
           command.extend(['-fallback-style', args.fallback_style])
         try:
-          procs[i] = (subprocess.Popen(command,
-                                        stdout=subprocess.PIPE,
-                                        stderr=None,
-                                        stdin=subprocess.PIPE,
-                                        universal_newlines=True))
+          procs[i] = subprocess.Popen(command,
+                                      stdout=subprocess.PIPE,
+                                      stderr=None,
+                                      stdin=subprocess.PIPE,
+                                      universal_newlines=True)
         except OSError as e:
           # Give the user more context when clang-format isn't
           # found/isn't executable, etc.
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to