Remove unnecessary '\' linebreak characters
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
6b3ce309ad
commit
04bdbe3ee0
1 changed files with 10 additions and 9 deletions
|
@ -85,8 +85,9 @@ def get_uncrustify_version() -> str:
|
||||||
"""
|
"""
|
||||||
Get the version string from Uncrustify
|
Get the version string from Uncrustify
|
||||||
"""
|
"""
|
||||||
result = subprocess.run([UNCRUSTIFY_EXE, "--version"], \
|
result = subprocess.run([UNCRUSTIFY_EXE, "--version"],
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
|
check=False)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print_err("Could not get Uncrustify version:", str(result.stderr, "utf-8"))
|
print_err("Could not get Uncrustify version:", str(result.stderr, "utf-8"))
|
||||||
return ""
|
return ""
|
||||||
|
@ -101,10 +102,10 @@ def check_style_is_correct(src_file_list: List[str]) -> bool:
|
||||||
style_correct = True
|
style_correct = True
|
||||||
for src_file in src_file_list:
|
for src_file in src_file_list:
|
||||||
uncrustify_cmd = [UNCRUSTIFY_EXE] + UNCRUSTIFY_ARGS + [src_file]
|
uncrustify_cmd = [UNCRUSTIFY_EXE] + UNCRUSTIFY_ARGS + [src_file]
|
||||||
result = subprocess.run(uncrustify_cmd, stdout=subprocess.PIPE, \
|
result = subprocess.run(uncrustify_cmd, stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE, check=False)
|
stderr=subprocess.PIPE, check=False)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print_err("Uncrustify returned " + str(result.returncode) + \
|
print_err("Uncrustify returned " + str(result.returncode) +
|
||||||
" correcting file " + src_file)
|
" correcting file " + src_file)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -135,8 +136,8 @@ def fix_style_single_pass(src_file_list: List[str]) -> bool:
|
||||||
uncrustify_cmd = [UNCRUSTIFY_EXE] + code_change_args + [src_file]
|
uncrustify_cmd = [UNCRUSTIFY_EXE] + code_change_args + [src_file]
|
||||||
result = subprocess.run(uncrustify_cmd, check=False)
|
result = subprocess.run(uncrustify_cmd, check=False)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print_err("Uncrustify with file returned: " + \
|
print_err("Uncrustify with file returned: " +
|
||||||
str(result.returncode) + " correcting file " + \
|
str(result.returncode) + " correcting file " +
|
||||||
src_file)
|
src_file)
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue