Skip to content

Commit

Permalink
Improve the inherited ABC
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored Mar 23, 2017
1 parent 4789772 commit dd071e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions msrest/paging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd071e3

Please sign in to comment.