提交 6fd7f186 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Reyhane Askari

Small code simplification

上级 24e7ed3b
...@@ -418,7 +418,7 @@ if 0: ...@@ -418,7 +418,7 @@ if 0:
# self.debug_all_apps.remove(app) # self.debug_all_apps.remove(app)
# UPDATE self.clients # UPDATE self.clients
for i, input in enumerate(set(app.inputs)): for input in set(app.inputs):
del self.clients[input][app] del self.clients[input][app]
if getattr(app.op, 'destroy_map', {}): if getattr(app.op, 'destroy_map', {}):
...@@ -875,7 +875,7 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa ...@@ -875,7 +875,7 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
self.debug_all_apps.remove(app) self.debug_all_apps.remove(app)
# UPDATE self.clients # UPDATE self.clients
for i, input in enumerate(set(app.inputs)): for input in set(app.inputs):
del self.clients[input][app] del self.clients[input][app]
if getattr(app.op, 'destroy_map', OrderedDict()): if getattr(app.op, 'destroy_map', OrderedDict()):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论