mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
Fixed PEP E501
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
3aa9442248
commit
102e5c1013
1 changed files with 6 additions and 3 deletions
|
@ -52,10 +52,13 @@ class Graph:
|
|||
try:
|
||||
import pygraphviz as pgv
|
||||
except ImportError:
|
||||
if self.image == "ascii" and not os.path.isfile("/usr/bin/graph-easy"):
|
||||
print("Require 'grap_easy': Install with 'slpkg -s sbo graph-easy'")
|
||||
if (self.image == "ascii"
|
||||
and not os.path.isfile("/usr/bin/graph-easy")):
|
||||
print("Require 'grap_easy': "
|
||||
"Install with 'slpkg -s sbo graph-easy'")
|
||||
else:
|
||||
print("Require 'pygraphviz: Install with 'slpkg -s sbo pygraphviz'")
|
||||
print("Require 'pygraphviz: "
|
||||
"Install with 'slpkg -s sbo pygraphviz'")
|
||||
raise SystemExit()
|
||||
if self.image != "ascii":
|
||||
self.check_file()
|
||||
|
|
Loading…
Add table
Reference in a new issue