Skip to content

Commit 5933bd1

Browse files
committed
Fix deprecation warnings
1 parent 1385831 commit 5933bd1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

joeflow/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def get_graph(cls, color="black"):
197197
graph.attr("graph", rankdir="LR")
198198
graph.attr(
199199
"node",
200-
dict(
200+
_attributes=dict(
201201
fontname="sans-serif", shape="rect", style="filled", fillcolor="white"
202202
),
203203
)

joeflow/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ def __iter__(self, subgraph=False):
3535
for kw in ("graph", "node", "edge"):
3636
attrs = getattr(self, "%s_attr" % kw)
3737
if attrs:
38-
yield self._attr(kw, self._attr_list(None, attrs))
38+
yield self._attr(kw, self._attr_list(None, kwargs=attrs))
3939

4040
yield from self.body
4141

4242
for name, attrs in sorted(self._nodes.items()):
4343
name = self._quote(name)
4444
label = attrs.pop("label", None)
4545
_attributes = attrs.pop("_attributes", None)
46-
attr_list = self._attr_list(label, attrs, _attributes)
46+
attr_list = self._attr_list(label, kwargs=attrs, attributes=_attributes)
4747
yield self._node(name, attr_list)
4848

4949
for edge, attrs in sorted(self._edges.items()):
@@ -52,7 +52,7 @@ def __iter__(self, subgraph=False):
5252
head_name = self._quote_edge(head_name)
5353
label = attrs.pop("label", None)
5454
_attributes = attrs.pop("_attributes", None)
55-
attr_list = self._attr_list(label, attrs, _attributes)
55+
attr_list = self._attr_list(label, kwargs=attrs, attributes=_attributes)
5656
yield self._edge(tail=tail_name, head=head_name, attr=attr_list)
5757

5858
yield self._tail

0 commit comments

Comments
 (0)