Skip to content

Commit a1457b6

Browse files
committed
Fix use-yield-from pylint error
1 parent 95dd925 commit a1457b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

office365/runtime/client_object_collection.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ def remove_child(self, client_object):
8181

8282
def __iter__(self):
8383
# type: () -> Iterator[T]
84-
for item in self._data:
85-
yield item
84+
yield from self._data
8685
if self._paged_mode:
8786
while self.has_next:
8887
self._get_next().execute_query()
8988
next_items = self._data[self._current_pos :]
90-
for next_item in next_items:
91-
yield next_item
89+
yield from next_items
9290

9391
def __len__(self):
9492
# type: () -> int

0 commit comments

Comments
 (0)