[tune] Refactoring: Deduplicate (#7918)

* refactoring: Deduplication

* refactoring: Deduplication

* refactoring: Deduplication

* refactoring: Deduplication

* lint fix: Variable naming case

* fix: Remove White Space

* fix_lint

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
marload
2020-04-10 12:19:04 +09:00
committed by GitHub
parent 305eb74a86
commit e3ffb8ac28
2 changed files with 9 additions and 15 deletions
+1 -4
View File
@@ -858,10 +858,7 @@ class LocalIterator(Generic[T]):
"other must be of type LocalIterator, got {}".format(
type(it)))
if deterministic:
timeout = None
else:
timeout = 0
timeout = None if deterministic else 0
active = []
parent_iters = [self] + list(others)