From c6d44738adcac6ab0184a39eeb5354474792648b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 19 Oct 2015 11:35:10 -0700 Subject: [PATCH] Clean up some more pyflakes warnings --- lib/ansible/plugins/action/fetch.py | 7 +------ lib/ansible/plugins/action/group_by.py | 1 - lib/ansible/plugins/action/pause.py | 3 +-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/ansible/plugins/action/fetch.py b/lib/ansible/plugins/action/fetch.py index 0d649a52c7..bbdedbdc7f 100644 --- a/lib/ansible/plugins/action/fetch.py +++ b/lib/ansible/plugins/action/fetch.py @@ -18,14 +18,9 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os -import pwd -import random -import traceback -import tempfile import base64 -from ansible import constants as C -from ansible.errors import * +from ansible.errors import AnsibleError from ansible.plugins.action import ActionBase from ansible.utils.boolean import boolean from ansible.utils.hashing import checksum, checksum_s, md5, secure_hash diff --git a/lib/ansible/plugins/action/group_by.py b/lib/ansible/plugins/action/group_by.py index 95db33aa43..4eff9f0b3f 100644 --- a/lib/ansible/plugins/action/group_by.py +++ b/lib/ansible/plugins/action/group_by.py @@ -17,7 +17,6 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -from ansible.errors import * from ansible.plugins.action import ActionBase class ActionModule(ActionBase): diff --git a/lib/ansible/plugins/action/pause.py b/lib/ansible/plugins/action/pause.py index 4eeaa6657e..0620a805a7 100644 --- a/lib/ansible/plugins/action/pause.py +++ b/lib/ansible/plugins/action/pause.py @@ -19,13 +19,12 @@ __metaclass__ = type import datetime import signal -import sys import termios import time import tty from os import isatty -from ansible.errors import * +from ansible.errors import AnsibleError from ansible.plugins.action import ActionBase class AnsibleTimeoutExceeded(Exception):