mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-17 07:20:51 +00:00
Remove unnecessary '\' linebreak characters
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
6b3ce309ad
commit
04bdbe3ee0
@ -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,11 +102,11 @@ 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
|
||||||
|
|
||||||
# Uncrustify makes changes to the code and places the result in a new
|
# Uncrustify makes changes to the code and places the result in a new
|
||||||
@ -135,9 +136,9 @@ 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…
x
Reference in New Issue
Block a user