Skip to content

Commit

Permalink
Use in
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-duboscq committed Sep 22, 2023
1 parent 8dec450 commit 21f1727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -15128,7 +15128,7 @@ def _registerDep(src, dst, edge):

if args.graph_file:
ext = get_file_extension(args.graph_file)
if ext == 'dot' or ext == '':
if ext in ('dot', ''):
dot_file = args.graph_file
else:
known_formats = 'ps', 'pdf', 'svg', 'png', 'gif', 'jpg'
Expand All @@ -15143,7 +15143,7 @@ def _registerDep(src, dst, edge):
f.write('ranksep=1;\n')
for src, dst, kind in edges:
attributes = {}
if kind == DEP_BUILD or kind == DEP_ANNOTATION_PROCESSOR:
if kind in (DEP_BUILD, DEP_ANNOTATION_PROCESSOR):
attributes['style'] = 'dashed'
if kind == DEP_STANDARD:
attributes['color'] = 'blue'
Expand Down

0 comments on commit 21f1727

Please sign in to comment.