Commit a36d1252 authored by Loo Rong Jie's avatar Loo Rong Jie Committed by Commit Bot

Fix python syntax in tools/presubmit.py

Python List Comprehension does not need join() (alias of os.path.join).

Change-Id: I9d5a8610d88c35fd4e3cb101bc10b25c3d1dd7cf
Reviewed-on: https://chromium-review.googlesource.com/538453Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Loo Rong Jie <loorongjie@gmail.com>
Cr-Commit-Position: refs/heads/master@{#46027}
parent 328afeeb
...@@ -249,7 +249,6 @@ class CppLintProcessor(SourceFileProcessor): ...@@ -249,7 +249,6 @@ class CppLintProcessor(SourceFileProcessor):
return True return True
filters = ",".join([n for n in LINT_RULES]) filters = ",".join([n for n in LINT_RULES])
command = [sys.executable, 'cpplint.py', '--filter', filters]
cpplint = self.GetCpplintScript(TOOLS_PATH) cpplint = self.GetCpplintScript(TOOLS_PATH)
if cpplint is None: if cpplint is None:
print('Could not find cpplint.py. Make sure ' print('Could not find cpplint.py. Make sure '
...@@ -258,7 +257,7 @@ class CppLintProcessor(SourceFileProcessor): ...@@ -258,7 +257,7 @@ class CppLintProcessor(SourceFileProcessor):
command = [sys.executable, cpplint, '--filter', filters] command = [sys.executable, cpplint, '--filter', filters]
commands = join([command + [file] for file in files]) commands = [command + [file] for file in files]
count = multiprocessing.cpu_count() count = multiprocessing.cpu_count()
pool = multiprocessing.Pool(count) pool = multiprocessing.Pool(count)
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment