From 2676c16b76d8a22edabc0a52a5756453216c2480 Mon Sep 17 00:00:00 2001 From: nanahpang <31627465+nanahpang@users.noreply.github.com> Date: Tue, 4 Aug 2020 11:10:54 -0700 Subject: [PATCH] Update check_include_guards.py Sanity Check. --- tools/distrib/check_include_guards.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/distrib/check_include_guards.py b/tools/distrib/check_include_guards.py index 8a76b2b0d9f..689752ad189 100755 --- a/tools/distrib/check_include_guards.py +++ b/tools/distrib/check_include_guards.py @@ -63,14 +63,14 @@ class GuardValidator(object): '...\n') + ('#endif /* {2} */' if c_core_header else '#endif // {2}') if not match_txt: - print(invalid_guards_msg_template.format(fpath, regexp.pattern, - build_valid_guard(fpath))) + print( + invalid_guards_msg_template.format(fpath, regexp.pattern, + build_valid_guard(fpath))) return fcontents - print(( - '{}: Wrong preprocessor guards (RE {}):' - '\n\tFound {}, expected {}').format(fpath, regexp.pattern, - match_txt, correct)) + print(('{}: Wrong preprocessor guards (RE {}):' + '\n\tFound {}, expected {}').format(fpath, regexp.pattern, + match_txt, correct)) if fix: print('Fixing {}...\n'.format(fpath)) fixed_fcontents = re.sub(match_txt, correct, fcontents)