Fix code minor code check errors
This commit is contained in:
1 parent
a7ad739036
commit
3ac5cafe53
2 files changed
+5
-3
No files matched your search
@@ -30,12 +30,14 @@ class ClusterCLI( CLI ):
|
||||
global nx, plt
|
||||
if not nx:
|
||||
try:
|
||||
# pylint: disable=import-error
|
||||
import networkx
|
||||
nx = networkx # satisfy pylint
|
||||
from matplotlib import pyplot
|
||||
plt = pyplot # satisfiy pylint
|
||||
import pygraphviz
|
||||
assert pygraphviz # silence pyflakes
|
||||
# pylint: enable=import-error
|
||||
except ImportError:
|
||||
error( 'plot requires networkx, matplotlib and pygraphviz - '
|
||||
'please install them and try again\n' )
|
||||
|
||||
Reference in new issue
Block a user