summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2021-08-11 13:18:40 -0700
committerGitHub <noreply@github.com>2021-08-11 13:18:40 -0700
commita5b062617643682e6556c6fa114d101095273dca (patch)
tree542f43dc6127383c60738963a4da323b2a35dc79 /hacking
parent04009a77e67900f5f362a65892ffe3b9f456e0b5 (diff)
downloadansible-a5b062617643682e6556c6fa114d101095273dca.tar.gz
Cleanup hacking scripts to prepare for pylint update. (#75474)
* Use generator in get_recent_coverage_runs.py * Use from import in test-module.py
Diffstat (limited to 'hacking')
-rwxr-xr-xhacking/azp/get_recent_coverage_runs.py2
-rwxr-xr-xhacking/test-module.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/hacking/azp/get_recent_coverage_runs.py b/hacking/azp/get_recent_coverage_runs.py
index 6a7fdae71f..25e2fa8120 100755
--- a/hacking/azp/get_recent_coverage_runs.py
+++ b/hacking/azp/get_recent_coverage_runs.py
@@ -63,7 +63,7 @@ def get_coverage_runs():
artifact_response.raise_for_status()
artifacts = artifact_response.json()['value']
- if any([a["name"].startswith("Coverage") for a in artifacts]):
+ if any(a["name"].startswith("Coverage") for a in artifacts):
# TODO wrongfully skipped if all jobs failed.
coverage_runs.append(run)
diff --git a/hacking/test-module.py b/hacking/test-module.py
index e954883cae..6cdda7c426 100755
--- a/hacking/test-module.py
+++ b/hacking/test-module.py
@@ -44,7 +44,7 @@ import ansible.utils.vars as utils_vars
from ansible.parsing.dataloader import DataLoader
from ansible.parsing.utils.jsonify import jsonify
from ansible.parsing.splitter import parse_kv
-import ansible.executor.module_common as module_common
+from ansible.executor import module_common
import ansible.constants as C
from ansible.module_utils._text import to_native, to_text
from ansible.template import Templar