Skip to content

Commit ce58f78

Browse files
telpiriondandhlee
authored andcommitted
samples: switch to next() function rather than next() method (#242)
1 parent 0d42532 commit ce58f78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

automl/beta/get_operation_status_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def operation_id():
3030
project_location, filter_=""
3131
).pages
3232
page = next(generator)
33-
operation = page.next()
33+
operation = next(page)
3434
yield operation.name
3535

3636

automl/snippets/get_operation_status_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def operation_id():
3131
project_location, filter_=""
3232
).pages
3333
page = next(generator)
34-
operation = page.next()
34+
operation = next(page)
3535
yield operation.name
3636

3737

0 commit comments

Comments
 (0)