pep8: Add compliance with rule E261 to graph.py.

This commit is contained in:
Aditya Bansal
2017-05-07 20:23:52 +05:30
committed by Tim Abbott
parent c0e1b49b68
commit ffb8440eef

View File

@@ -11,9 +11,9 @@ EdgeSet = Set[Edge]
class Graph(object):
def __init__(self, tuples):
# type: (EdgeSet) -> None
self.children = defaultdict(list) # type: DefaultDict[str, List[str]]
self.parents = defaultdict(list) # type: DefaultDict[str, List[str]]
self.nodes = set() # type: Set[str]
self.children = defaultdict(list) # type: DefaultDict[str, List[str]]
self.parents = defaultdict(list) # type: DefaultDict[str, List[str]]
self.nodes = set() # type: Set[str]
for parent, child in tuples:
self.parents[child].append(parent)
@@ -47,7 +47,7 @@ class Graph(object):
# type: () -> None
still_work_to_do = True
while still_work_to_do:
still_work_to_do = False # for now
still_work_to_do = False # for now
for node in self.nodes:
if self.is_exterior_node(node):
self.remove(node)