From 3fce81ee673c8ce2d9e6637b66042b6aec538435 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Thu, 2 Sep 2021 16:11:24 -0700 Subject: [PATCH] samples: switch to next() function rather than next() method (#242) --- automl/beta/get_operation_status_test.py | 2 +- automl/snippets/get_operation_status_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/automl/beta/get_operation_status_test.py b/automl/beta/get_operation_status_test.py index b178e9a2ae34..eca990339403 100644 --- a/automl/beta/get_operation_status_test.py +++ b/automl/beta/get_operation_status_test.py @@ -30,7 +30,7 @@ def operation_id(): project_location, filter_="" ).pages page = next(generator) - operation = page.next() + operation = next(page) yield operation.name diff --git a/automl/snippets/get_operation_status_test.py b/automl/snippets/get_operation_status_test.py index bacbecc51ba5..5f7f0b4161e1 100644 --- a/automl/snippets/get_operation_status_test.py +++ b/automl/snippets/get_operation_status_test.py @@ -31,7 +31,7 @@ def operation_id(): project_location, filter_="" ).pages page = next(generator) - operation = page.next() + operation = next(page) yield operation.name