]> granicus.if.org Git - graphviz/commitdiff
remove quirky use of bitwise AND in Python
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Jul 2021 02:18:13 +0000 (19:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 9 Jul 2021 04:46:51 +0000 (21:46 -0700)
tclpkg/gv/demo/modgraph.py

index b15890b2a84b69da2e5492237de24cc74a9fe781..c23b938bc2d1195717f8e281f3b686e414ce6340 100755 (executable)
@@ -27,7 +27,7 @@ for rec in modules:
   fields = rec.split(" ")
   n = gv.node(G, fields[0])
   for usedby in fields[3].split(","):
-    if (usedby != "-") & (usedby != ""):
+    if usedby not in ("-", ""):
       gv.edge(n, gv.node(G, usedby))
 
 gv.layout(G, "dot")