Fix up another handful of LGTM errors.

pull/618/head
David Wilson 5 years ago
parent 4b9b1ca24d
commit 3b63da670f

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

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

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

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

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

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

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

Loading…
Cancel
Save