summaryrefslogtreecommitdiffstats
path: root/test/sanity
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2024-03-21 16:25:57 +0100
committerMatt Clay <matt@mystile.com>2024-03-21 17:37:18 +0100
commitaecffcb896a170c1de7a6cf532699aad33b4a095 (patch)
treea31230bbc51156cc801d20316b56fd78a250fb41 /test/sanity
parentUnarchive get zipinfo on more OS/distros (#82873) (diff)
downloadansible-aecffcb896a170c1de7a6cf532699aad33b4a095.tar.xz
ansible-aecffcb896a170c1de7a6cf532699aad33b4a095.zip
pylint: update for use-yield-from
* With Pylint 3.1.0, use-yield-from check is enabled Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'test/sanity')
-rw-r--r--test/sanity/code-smell/deprecated-config.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sanity/code-smell/deprecated-config.py b/test/sanity/code-smell/deprecated-config.py
index 474628a35c..7056ca2746 100644
--- a/test/sanity/code-smell/deprecated-config.py
+++ b/test/sanity/code-smell/deprecated-config.py
@@ -55,8 +55,7 @@ def find_deprecations(obj, path=None):
this_path.append(key)
if key != 'deprecated':
- for result in find_deprecations(value, path=this_path):
- yield result
+ yield from find_deprecations(value, path=this_path)
else:
try:
version = value['version']