Skip to content

Commit

Permalink
Use yield-from as suggested by pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
sbkok committed Apr 9, 2024
1 parent 0415b4d commit 563f7d7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ def paginator(method, **kwargs):
client = method.__self__
iterator = client.get_paginator(method.__name__)
for page in iterator.paginate(**kwargs).result_key_iters():
for result in page:
yield result
yield from page

0 comments on commit 563f7d7

Please sign in to comment.