From dd071e37a668cb1c3da476ac67db64b0d18ee16b Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 23 Mar 2017 09:50:11 -0700 Subject: [PATCH] Improve the inherited ABC --- msrest/paging.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/msrest/paging.py b/msrest/paging.py index 557d92d..d4c91c8 100644 --- a/msrest/paging.py +++ b/msrest/paging.py @@ -23,14 +23,16 @@ # IN THE SOFTWARE. # # -------------------------------------------------------------------------- - -import collections +try: + from collections.abc import Iterator +except ImportError: + from collections import Iterator from .serialization import Deserializer from .pipeline import ClientRawResponse -class Paged(collections.Iterable): +class Paged(Iterator): """A container for paged REST responses. :param requests.Response response: server response object.