提交 bb9ed8fb authored 作者: Olivier Delalleau's avatar Olivier Delalleau

PEP8

上级 baac919b
...@@ -141,7 +141,7 @@ def _contains_cycle(fgraph, orderings): ...@@ -141,7 +141,7 @@ def _contains_cycle(fgraph, orderings):
# IG: I tried using a shared empty_list = [] constructed # IG: I tried using a shared empty_list = [] constructed
# outside of the for loop to avoid constructing multiple # outside of the for loop to avoid constructing multiple
# lists, but this was not any faster. # lists, but this was not any faster.
parents.extend(orderings.get(a_n,[])) parents.extend(orderings.get(a_n, []))
if parents: if parents:
for parent in parents: for parent in parents:
...@@ -982,8 +982,8 @@ class DestroyHandler(toolbox.Bookkeeper): ...@@ -982,8 +982,8 @@ class DestroyHandler(toolbox.Bookkeeper):
# depend on destroyed_input # depend on destroyed_input
root_clients = OrderedSet() root_clients = OrderedSet()
for r in root_impact: for r in root_impact:
assert not [a for a,c in self.clients[r].items() if not c] assert not [a for a, c in self.clients[r].items() if not c]
root_clients.update([a for a,c in self.clients[r].items() if c]) root_clients.update([a for a, c in self.clients[r].items() if c])
root_clients.remove(app) root_clients.remove(app)
if root_clients: if root_clients:
rval[app] = root_clients rval[app] = root_clients
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论