From d1b2a4ed1103f9ee3d05289bf9db530c014eb414 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Fri, 4 Nov 2022 08:31:52 +0200 Subject: [PATCH] limit not printed --- srcxray.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srcxray.py b/srcxray.py index 147f38b..7c1e654 100755 --- a/srcxray.py +++ b/srcxray.py @@ -619,9 +619,10 @@ def digraph_print(dg, starts=None, dst_fn=None, sort=False): if o in dg: digraph_print_sub('', o) # not yet printed rest: - for o in dg.nodes(): - if o not in printed: - digraph_print_sub('', o) + if lines < lines_limit: + for o in dg.nodes(): + if o not in printed: + digraph_print_sub('', o) if dst_fn: print(dst_fn) dst.close()