replace some forgotten is_abstract()
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 12 Dec 2012 21:36:45 +0000 (22:36 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 12 Dec 2012 21:36:45 +0000 (22:36 +0100)
migen/flow/network.py

index c26af1f3add61ec83696d157b3ab4631ebd07bbf..f4cd69b772ba111893ad67c6b6f72dc26506da9d 100644 (file)
@@ -154,7 +154,7 @@ class DataFlowGraph(MultiDiGraph):
                                        edges = self.in_edges(a, data=True)
                                        assert(len(edges) == 1)
                                        other, me, data = edges[0]
-                                       if other.is_abstract():
+                                       if isinstance(other, AbstractActor):
                                                continue
                                        other_ep = data["source"]
                                        if other_ep is None:
@@ -163,7 +163,7 @@ class DataFlowGraph(MultiDiGraph):
                                        edges = self.out_edges(a, data=True)
                                        assert(len(edges) == 1)
                                        me, other, data = edges[0]
-                                       if other.is_abstract():
+                                       if isinstance(other, AbstractActor):
                                                continue
                                        other_ep = data["sink"]
                                        if other_ep is None: