From bfda33544ae673ba29c7eac2d56dda61f3547bb4 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 28 Aug 2018 18:48:50 -0700 Subject: [PATCH] code check --- examples/clustercli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/clustercli.py b/examples/clustercli.py index 5960c17..68dc686 100644 --- a/examples/clustercli.py +++ b/examples/clustercli.py @@ -30,7 +30,7 @@ class ClusterCLI( CLI ): global nx, plt, graphviz_layout if not nx: try: - # pylint: disable=import-error + # pylint: disable=import-error,no-member import networkx nx = networkx # satisfy pylint from matplotlib import pyplot @@ -42,7 +42,7 @@ class ClusterCLI( CLI ): graphviz_layout = nx.graphviz_layout else: graphviz_layout = nx.drawing.nx_agraph.graphviz_layout - # pylint: enable=import-error + # pylint: enable=import-error,no-member except ImportError: error( 'plot requires networkx, matplotlib and pygraphviz - ' 'please install them and try again\n' )