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 authored and dandhlee committed Nov 17, 2022
1 parent 0d42532 commit ce58f78
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 ce58f78

Please sign in to comment.