Fix geneartors for python3.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4312c93eae
commit
48ed68eeaa
2 changed files with 15 additions and 15 deletions
|
|
@ -112,7 +112,7 @@ def build_thread(container, presenter, queue, log_args):
|
|||
|
||||
def build_thread_map(initial_containers, presenters, thread_args):
|
||||
return {
|
||||
container.id: build_thread(container, presenters.next(), *thread_args)
|
||||
container.id: build_thread(container, next(presenters), *thread_args)
|
||||
for container in initial_containers
|
||||
}
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ def watch_events(thread_map, event_stream, presenters, thread_args):
|
|||
|
||||
thread_map[event['id']] = build_thread(
|
||||
event['container'],
|
||||
presenters.next(),
|
||||
next(presenters),
|
||||
*thread_args)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue