提交 074f2980 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Flake8 for gof/sched.py

上级 2a3d24c4
...@@ -160,12 +160,12 @@ def posort(l, *cmps): ...@@ -160,12 +160,12 @@ def posort(l, *cmps):
for b in l: for b in l:
assert not(b in comes_after[a] and a in comes_after[b]) assert not(b in comes_after[a] and a in comes_after[b])
for cmp in cmps: for cmp_fn in cmps:
for a in l: for a in l:
for b in l: for b in l:
if cmp(a, b) < 0: # a wants to come before b if cmp_fn(a, b) < 0: # a wants to come before b
# if this wouldn't cause a cycle and isn't already known # if this wouldn't cause a cycle and isn't already known
if not b in comes_before[a] and not b in comes_after[a]: if b not in comes_before[a] and b not in comes_after[a]:
add_links(a, b) add_links(a, b)
# check() # debug code # check() # debug code
......
...@@ -274,7 +274,6 @@ whitelist_flake8 = [ ...@@ -274,7 +274,6 @@ whitelist_flake8 = [
"gof/cc.py", "gof/cc.py",
"gof/opt.py", "gof/opt.py",
"gof/link.py", "gof/link.py",
"gof/sched.py",
"gof/toolbox.py", "gof/toolbox.py",
"gof/fg.py", "gof/fg.py",
"gof/op.py", "gof/op.py",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论