Skip to content

Commit

Permalink
Meet coding style requirements.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Davies <jeremy@davies.name>
  • Loading branch information
esky-software committed Dec 7, 2023
1 parent 30a1a77 commit 2944a33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cally.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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 \"{}\"!".
Expand Down

0 comments on commit 2944a33

Please sign in to comment.