mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-09 11:01:24 +00:00
DomainTransitionAnalysis/InfoFlowAnalysis: Fix lint errors.
Pylint seems to be buggy in analyzing this statement. Splitting it into two statements didn't help. Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
74f3efc59e
commit
f28fa429c7
@ -115,7 +115,8 @@ class DomainTransitionAnalysis:
|
|||||||
# NodeNotFound: the type is valid but not in graph, e.g. excluded
|
# NodeNotFound: the type is valid but not in graph, e.g. excluded
|
||||||
# NetworkXNoPath: no paths or the target type is
|
# NetworkXNoPath: no paths or the target type is
|
||||||
# not in the graph
|
# not in the graph
|
||||||
yield self.__generate_steps(nx.shortest_path(self.subG, s, t))
|
# pylint: disable=unexpected-keyword-arg, no-value-for-parameter
|
||||||
|
yield self.__generate_steps(nx.shortest_path(self.subG, source=s, target=t))
|
||||||
|
|
||||||
def all_paths(self, source, target, maxlen=2):
|
def all_paths(self, source, target, maxlen=2):
|
||||||
"""
|
"""
|
||||||
|
@ -129,7 +129,8 @@ class InfoFlowAnalysis:
|
|||||||
# excluded or disconnected due to min weight
|
# excluded or disconnected due to min weight
|
||||||
# NetworkXNoPath: no paths or the target type is
|
# NetworkXNoPath: no paths or the target type is
|
||||||
# not in the graph
|
# not in the graph
|
||||||
yield self.__generate_steps(nx.shortest_path(self.subG, s, t))
|
# pylint: disable=unexpected-keyword-arg, no-value-for-parameter
|
||||||
|
yield self.__generate_steps(nx.shortest_path(self.subG, source=s, target=t))
|
||||||
|
|
||||||
def all_paths(self, source, target, maxlen=2):
|
def all_paths(self, source, target, maxlen=2):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user