[Bf-blender-cvs] [5e4b2dfec47] temp-clang-format: Clenaup: minor arg variable use
Campbell Barton
noreply at git.blender.org
Mon Apr 15 18:59:56 CEST 2019
Commit: 5e4b2dfec470692e75c0432354144a4e8f1d3a8b
Author: Campbell Barton
Date: Mon Apr 15 18:58:40 2019 +0200
Branches: temp-clang-format
https://developer.blender.org/rB5e4b2dfec470692e75c0432354144a4e8f1d3a8b
Clenaup: minor arg variable use
===================================================================
M build_files/utils/clang_format_paths.py
===================================================================
diff --git a/build_files/utils/clang_format_paths.py b/build_files/utils/clang_format_paths.py
index 07e71a0f554..06e813f1e8e 100755
--- a/build_files/utils/clang_format_paths.py
+++ b/build_files/utils/clang_format_paths.py
@@ -21,11 +21,10 @@ ignore_files = {
}
-def compute_paths(paths_arg):
+def compute_paths(paths):
# Optionally pass in files to operate on.
- paths = paths_arg
if not paths:
- paths.extend((
+ paths = (
"intern/atomic",
"intern/audaspace",
"intern/clog",
@@ -47,7 +46,7 @@ def compute_paths(paths_arg):
"intern/utfconv",
"source",
"tests/gtests",
- ))
+ )
if os.sep != "/":
paths = [f.replace("/", os.sep) for f in paths]
@@ -142,7 +141,6 @@ def argparse_create():
return parser
-
def main():
version = clang_format_version()
if version is None:
More information about the Bf-blender-cvs
mailing list