From 04b60de8598da6e2a801e6336668fc1ef9cd4ebe Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Sat, 11 Aug 2018 17:52:02 +0300 Subject: [PATCH] move , --- srcxray.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/srcxray.py b/srcxray.py index 4c2fe71..1dc050a 100755 --- a/srcxray.py +++ b/srcxray.py @@ -59,7 +59,7 @@ black_list = ('aligned __attribute__ unlikely typeof u32 ' 'retry LOOKUP_REVAL retry_estale user_path_at lookup_flags old ' 'current_user_ns spin_lock_irq spin_unlock_irq prepare_creds ' 'tasklist_lock commit_creds read_lock read_unlock SIGKILL SIGSTOP abort_creds fd_install ' - 'real_mount FMODE_WRITE tv_nsec putname ' + 'real_mount FMODE_WRITE tv_nsec putname ,' ).split() @@ -639,8 +639,6 @@ def write_dot(g, dot): g.remove_nodes_from(black_list) ranks = collections.defaultdict(list) for n in g.nodes(): - if n == ',': - continue r = rank(g, n) if r: ranks[r].append(n) @@ -649,8 +647,7 @@ def write_dot(g, dot): # dot.write((n if n != 'node' else '"node"') + ';\n') # dot.write((n if n != 'node' else '"node"') + ' -> { ') dot.write('"%s" -> { ' % (n)) - # dot.write(' '.join([str(a) if a != 'node' else '"node"' for a in g.successors(n) if str(a) != ','])) - dot.write(' '.join(['"%s"' % (str(a)) for a in g.successors(n) if str(a) != ','])) + dot.write(' '.join(['"%s"' % (str(a)) for a in g.successors(n)])) if r and scaled: dot.write(' } [penwidth=%d label=%d];\n' % (100/r, r)) else: