diff options
author | Matt Clay <matt@mystile.com> | 2023-02-03 01:00:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 01:00:50 +0100 |
commit | e69ef1b249cbd9da7d58fb2f5fb40d0b6b0da57f (patch) | |
tree | fa0cd036a43af8c625e640d3b3bec516ffda39aa /hacking | |
parent | Clean up unused imports in unit tests (#79893) (diff) | |
download | ansible-e69ef1b249cbd9da7d58fb2f5fb40d0b6b0da57f.tar.xz ansible-e69ef1b249cbd9da7d58fb2f5fb40d0b6b0da57f.zip |
Clean up unused imports in `hacking` directory (#79894)
Diffstat (limited to 'hacking')
-rwxr-xr-x | hacking/azp/download.py | 1 | ||||
-rw-r--r-- | hacking/build_library/build_ansible/command_plugins/docs_build.py | 2 | ||||
-rw-r--r-- | hacking/build_library/build_ansible/command_plugins/update_intersphinx.py | 6 |
3 files changed, 1 insertions, 8 deletions
diff --git a/hacking/azp/download.py b/hacking/azp/download.py index 117e9da5b7..e0de99a27a 100755 --- a/hacking/azp/download.py +++ b/hacking/azp/download.py @@ -27,7 +27,6 @@ import argparse import json import os import re -import sys import io import zipfile diff --git a/hacking/build_library/build_ansible/command_plugins/docs_build.py b/hacking/build_library/build_ansible/command_plugins/docs_build.py index 50b0f903f4..67a4aeab87 100644 --- a/hacking/build_library/build_ansible/command_plugins/docs_build.py +++ b/hacking/build_library/build_ansible/command_plugins/docs_build.py @@ -19,7 +19,7 @@ from ansible.release import __version__ as ansible_core__version__ # Pylint doesn't understand Python3 namespace modules. # pylint: disable=relative-beyond-top-level from ..commands import Command -from ..errors import InvalidUserInput, MissingUserInput +from ..errors import InvalidUserInput # pylint: enable=relative-beyond-top-level diff --git a/hacking/build_library/build_ansible/command_plugins/update_intersphinx.py b/hacking/build_library/build_ansible/command_plugins/update_intersphinx.py index 9337859f32..e4637e56cf 100644 --- a/hacking/build_library/build_ansible/command_plugins/update_intersphinx.py +++ b/hacking/build_library/build_ansible/command_plugins/update_intersphinx.py @@ -7,21 +7,15 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -import argparse import importlib -import os import pathlib -import time import urllib.parse -from collections import defaultdict - from ansible.module_utils.common.collections import is_iterable from ansible.module_utils.urls import Request # Pylint doesn't understand Python3 namespace modules. from ..commands import Command # pylint: disable=relative-beyond-top-level -from .. import errors # pylint: disable=relative-beyond-top-level EXAMPLE_CONF = """ |