Skip to content

Commit

Permalink
rename the variable label
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep committed Dec 28, 2024
1 parent 3167a02 commit a8cc2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treelib/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,8 @@ def to_graphviz(
sorting=sorting,
):
nid = self[n].identifier
tag = str(self[n].tag).translate(str.maketrans({'"': r"\""}))
state = '"{0}" [label="{1}", shape={2}]'.format(nid, tag, shape)
label = str(self[n].tag).translate(str.maketrans({'"': r"\""}))
state = '"{0}" [label="{1}", shape={2}]'.format(nid, label, shape)
nodes.append(state)

for c in self.children(nid):
Expand Down

0 comments on commit a8cc2e4

Please sign in to comment.