Skip to content

Commit

Permalink
samples: switch to next() function rather than next() method (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion committed Sep 2, 2021
1 parent 63fb4c3 commit 3fce81e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion automl/beta/get_operation_status_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def operation_id():
project_location, filter_=""
).pages
page = next(generator)
operation = page.next()
operation = next(page)
yield operation.name


Expand Down
2 changes: 1 addition & 1 deletion automl/snippets/get_operation_status_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def operation_id():
project_location, filter_=""
).pages
page = next(generator)
operation = page.next()
operation = next(page)
yield operation.name


Expand Down

0 comments on commit 3fce81e

Please sign in to comment.