From 2944a339dd29a554c04e5538dccdefdf23fc4e3a Mon Sep 17 00:00:00 2001 From: esky-software Date: Thu, 7 Dec 2023 12:46:23 +0100 Subject: [PATCH] Meet coding style requirements. Signed-off-by: Jeremy Davies --- cally.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cally.py b/cally.py index c214014..8c0d917 100755 --- a/cally.py +++ b/cally.py @@ -531,7 +531,8 @@ def full_call_graph(functions, **kwargs): print_buf(std_buf, '"{}" -> "{}";'.format(func, caller)) - if (caller not in functions) or (len(functions[caller]["files"]) == 0): + if caller not in functions or \ + len(functions[caller]["files"]) == 0: print_buf(std_buf, '"{}" [style=dashed]'. format(caller)) @@ -648,7 +649,8 @@ def main(): match = re.match(function, line) if match is not None: function_name = match.group("function") - if function_name in functions and functions[function_name]["files"]: + if function_name in functions and \ + functions[function_name]["files"]: if not config.no_warnings: print_err("WARNING: Function {} defined in multiple " "files \"{}\"!".