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:
Chris PeBenito 2020-05-07 15:16:17 -04:00
parent 74f3efc59e
commit f28fa429c7
2 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,8 @@ class DomainTransitionAnalysis:
# NodeNotFound: the type is valid but not in graph, e.g. excluded
# NetworkXNoPath: no paths or the target type is
# 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):
"""

View File

@ -129,7 +129,8 @@ class InfoFlowAnalysis:
# excluded or disconnected due to min weight
# NetworkXNoPath: no paths or the target type is
# 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):
"""