From d03b9eddf66079cae0096335db10488f742c2b34 Mon Sep 17 00:00:00 2001 From: joren485 Date: Tue, 31 Jul 2018 03:55:42 +0200 Subject: [PATCH] Remove unused imports from /bin and lib/ansible/cli (#43440) * Remove unused imports from lib/ansible/cli * Remove unused imports from bin/ --- bin/ansible-connection | 2 +- lib/ansible/cli/adhoc.py | 2 -- lib/ansible/cli/config.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/ansible-connection b/bin/ansible-connection index f77e3f2fe6..0d9ad17131 100755 --- a/bin/ansible-connection +++ b/bin/ansible-connection @@ -23,7 +23,7 @@ import json from contextlib import contextmanager from ansible import constants as C -from ansible.module_utils._text import to_bytes, to_native, to_text +from ansible.module_utils._text import to_bytes, to_text from ansible.module_utils.six import PY3 from ansible.module_utils.six.moves import cPickle, StringIO from ansible.module_utils.connection import Connection, ConnectionError, send_data, recv_data diff --git a/lib/ansible/cli/adhoc.py b/lib/ansible/cli/adhoc.py index 40026ff851..18427d8cae 100644 --- a/lib/ansible/cli/adhoc.py +++ b/lib/ansible/cli/adhoc.py @@ -20,8 +20,6 @@ __metaclass__ = type ######################################################## -import os - from ansible import constants as C from ansible.cli import CLI from ansible.errors import AnsibleError, AnsibleOptionsError diff --git a/lib/ansible/cli/config.py b/lib/ansible/cli/config.py index 170b95adfa..f6f239845f 100644 --- a/lib/ansible/cli/config.py +++ b/lib/ansible/cli/config.py @@ -13,7 +13,7 @@ import yaml from ansible.cli import CLI from ansible.config.manager import ConfigManager, Setting, find_ini_config_file from ansible.errors import AnsibleError, AnsibleOptionsError -from ansible.module_utils._text import to_native, to_text, to_bytes +from ansible.module_utils._text import to_native, to_text from ansible.parsing.yaml.dumper import AnsibleDumper from ansible.utils.color import stringc from ansible.utils.path import unfrackpath