From 01abf7d7e7af69b4ae1debb5cf5b5d56eb88f7b4 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Thu, 30 Apr 2020 13:02:18 +1000
Subject: [PATCH] Cleanup: long lines

---
 utils_maintenance/clang_format_paths.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/utils_maintenance/clang_format_paths.py b/utils_maintenance/clang_format_paths.py
index bd8a99f..72704e4 100755
--- a/utils_maintenance/clang_format_paths.py
+++ b/utils_maintenance/clang_format_paths.py
@@ -101,7 +101,11 @@ def clang_format_ensure_version():
     clang_format_cmd = None
     version_output = None
     for i in range(2, -1, -1):
-        clang_format_cmd = "clang-format-" + (".".join(["%d"] * i) % VERSION_MIN[:i]) if i > 0 else "clang-format"
+        clang_format_cmd = (
+            "clang-format-" + (".".join(["%d"] * i) % VERSION_MIN[:i])
+            if i > 0 else
+            "clang-format"
+        )
         try:
             version_output = subprocess.check_output((clang_format_cmd, "-version")).decode('utf-8')
         except FileNotFoundError as e:
@@ -173,8 +177,15 @@ def main():
         print("Version of clang-format is too old:", version, "<", VERSION_MIN)
         sys.exit(1)
     if version > VERSION_MAX_RECOMMENDED:
-        print("WARNING: Version of clang-format is too recent:", version, ">=", VERSION_MAX_RECOMMENDED)
-        print("You may want to install clang-format-%d.%d, or use the precompiled libs repository." % (version[0], version[1]))
+        print(
+            "WARNING: Version of clang-format is too recent:",
+            version, ">=", VERSION_MAX_RECOMMENDED,
+        )
+        print(
+            "You may want to install clang-format-%d.%d, "
+            "or use the precompiled libs repository." %
+            (version[0], version[1]),
+        )
 
     args = argparse_create().parse_args()
 
-- 
GitLab