mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 00:12:54 +00:00
[PR #11122/2dfb46a4 backport][stable-12] remove ignore lines for Python 2 (#11134)
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
---------
(cherry picked from commit 2dfb46a4a6)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
93d23cfef6
commit
6df72406c5
8 changed files with 4 additions and 14 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue