1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

remove ignore lines for Python 2 (#11122)

* remove ignore lines for Python 2

* use yield from

* add changelog frag

* Update changelogs/fragments/11122-yield-from-ignore.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2025-11-13 09:14:51 +13:00 committed by GitHub
parent c45fba549f
commit 2dfb46a4a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 4 additions and 14 deletions

View file

@ -161,8 +161,7 @@ def ldap_search(filter, base=None, attr=None):
break
else:
if result_type is ldap_module().RES_SEARCH_ENTRY:
for res in result_data:
yield res
yield from result_data
uldap().lo.lo.abandon(msgid)