From 5964df62db1cb040574517c6864cc4a8a12db0ae Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 8 Jun 2012 22:54:04 +0200 Subject: [PATCH] examples/dataflow: only import nx when needed --- examples/dataflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dataflow.py b/examples/dataflow.py index 5c3d5fc0e..f6e786778 100644 --- a/examples/dataflow.py +++ b/examples/dataflow.py @@ -1,5 +1,4 @@ import sys -import networkx as nx from migen.fhdl import verilog from migen.flow.ala import * @@ -19,5 +18,6 @@ print(verilog.convert(frag)) if len(sys.argv) > 1 and sys.argv[1] == "draw": import matplotlib.pyplot as plt + import networkx as nx nx.draw(g) plt.show()