Fix up another handful of LGTM errors.

This commit is contained in:
David Wilson 2019-08-12 11:12:09 +01:00
parent 4b9b1ca24d
commit 3b63da670f
7 changed files with 10 additions and 7 deletions

View File

@ -32,6 +32,15 @@ Stable names for PluginLoader instances across Ansible versions.
from __future__ import absolute_import
__all__ = [
'action_loader',
'connection_loader',
'module_loader',
'module_utils_loader',
'shell_loader',
'strategy_loader',
]
try:
from ansible.plugins.loader import action_loader
from ansible.plugins.loader import connection_loader

View File

@ -32,7 +32,6 @@ import logging
import multiprocessing
import os
import resource
import signal
import socket
import sys

View File

@ -37,7 +37,6 @@ how to build arguments for it, preseed related data, etc.
"""
import atexit
import codecs
import imp
import os
import re

View File

@ -245,7 +245,7 @@ def main(router):
if sys.platform == 'darwin':
kwargs['volname'] = '%s (Mitogen)' % (sys.argv[1],)
f = fuse.FUSE(
fuse.FUSE(
operations=Operations(sys.argv[1]),
mountpoint=sys.argv[2],
foreground=True,

View File

@ -47,7 +47,6 @@ import re
import string
import sys
import threading
import time
import types
import zlib

View File

@ -41,7 +41,6 @@ import getpass
import heapq
import inspect
import logging
import logging
import os
import re
import signal
@ -52,7 +51,6 @@ import sys
import termios
import textwrap
import threading
import time
import zlib
# Absolute imports for <2.5.

View File

@ -37,7 +37,6 @@ import pwd
import stat
import sys
import threading
import time
import mitogen.core
import mitogen.select