Remove unused stdlib imports from module_utils (#79905)

pull/79910/head
Matt Clay 2 years ago committed by GitHub
parent 639e3e30d7
commit b3307f1aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,4 @@
minor_changes:
- >
Remove unused Python stdlib imports from module_utils which were not present for backwards compatibility in:
common.file, compat.selectors, facts.network.iscsi, facts.network.nvme, yumdnf

@ -4,15 +4,10 @@
from __future__ import (absolute_import, division, print_function) from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
import errno
import os import os
import stat import stat
import re import re
import pwd
import grp
import time import time
import shutil
import traceback
import fcntl import fcntl
import sys import sys

@ -35,7 +35,6 @@ _BUNDLED_METADATA = {"pypi_name": "selectors2", "version": "1.1.1", "version_con
# Fix use of OSError exception for py3 and use the wrapper of kqueue.control so retries of # Fix use of OSError exception for py3 and use the wrapper of kqueue.control so retries of
# interrupted syscalls work with kqueue # interrupted syscalls work with kqueue
import os.path
import sys import sys
import types import types

@ -19,7 +19,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
import sys import sys
import subprocess
import ansible.module_utils.compat.typing as t import ansible.module_utils.compat.typing as t

@ -19,7 +19,6 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type __metaclass__ = type
import sys import sys
import subprocess
import ansible.module_utils.compat.typing as t import ansible.module_utils.compat.typing as t

@ -15,7 +15,6 @@ __metaclass__ = type
import os import os
import time import time
import glob import glob
import tempfile
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
from ansible.module_utils.six import with_metaclass from ansible.module_utils.six import with_metaclass

Loading…
Cancel
Save