remove unused imports, Fix #1189

This commit is contained in:
Baiju Muthukadan 2012-05-03 15:05:23 +05:30
parent 468df71441
commit 328052a499
27 changed files with 2 additions and 42 deletions

View File

@ -743,7 +743,6 @@ class SaltCall(object):
salt.log.setup_console_logger(
self.opts['log_level']
)
import logging
caller = salt.cli.caller.Caller(self.opts)
caller.run()

View File

@ -33,7 +33,6 @@ import re
import sys
import glob
import time
import datetime
import getpass
# Import zmq modules

View File

@ -11,11 +11,9 @@ import hmac
import hashlib
import logging
import tempfile
import base64
# Import Cryptography libs
from Crypto.Cipher import AES
from Crypto.Hash import MD5
from M2Crypto import RSA
# Import zeromq libs

View File

@ -11,7 +11,6 @@ import logging
import hashlib
import os
import shutil
import stat
import string
import subprocess
try:

View File

@ -18,7 +18,7 @@ import traceback
import zmq
# Import salt libs
from salt.exceptions import AuthenticationError, MinionError, \
from salt.exceptions import AuthenticationError, \
CommandExecutionError, CommandNotFoundError, SaltInvocationError, \
SaltClientError
import salt.client

View File

@ -13,7 +13,6 @@ import grp
import pwd
import time
import hashlib
import sys
import stat
import fnmatch

View File

@ -3,8 +3,6 @@ Top level package command wrapper, used to translate the os detected by the
grains to the correct service manager
'''
import os
def __virtual__():
'''

View File

@ -3,7 +3,6 @@ Salt module to manage RAID arrays with mdadm
'''
import logging
import os
# Set up logger

View File

@ -5,7 +5,6 @@ Module for gathering and managing network information
from string import ascii_letters, digits
import socket
import re
import salt.utils
__outputter__ = {
'dig': 'txt',

View File

@ -3,9 +3,8 @@ The networking module for RHEL/Fedora based distros
'''
# Import python libs
import logging
import os
import re
from os.path import exists, dirname, join
from os.path import exists, join
# import third party libs
import jinja2

View File

@ -4,8 +4,6 @@ service command (so it is compatible with upstart systems) and the chkconfig
command.
'''
import os
def __virtual__():
'''

View File

@ -62,7 +62,6 @@ verbose : True
# Import Python Libs
import urllib2
import json
import socket
import os
# Import Salt libs

View File

@ -5,7 +5,6 @@ Control the state system on the minion
# Import Python libs
import copy
import os
import sys
# Import Salt libs
import salt.state

View File

@ -12,8 +12,6 @@ import hashlib
import logging
try:
import win32api
import win32con
import win32security
import ntsecuritycon as con
has_windows_modules = True

View File

@ -4,8 +4,6 @@ Module for gathering and managing network information
from string import ascii_letters, digits
import socket
import re
import salt.utils
__outputter__ = {
'dig': 'txt',

View File

@ -2,7 +2,6 @@
Windows Service module.
'''
import os
import time

View File

@ -2,7 +2,6 @@
Manage the shadow file
'''
import os
def __virtual__():
'''

View File

@ -4,7 +4,6 @@ Support for YUM
import logging
from collections import namedtuple
from salt.exceptions import PkgParseError
logger = logging.getLogger(__name__)

View File

@ -10,7 +10,6 @@ import json
import os
# Import salt libs
from salt.utils.jinja import get_template
from salt.exceptions import SaltRenderError
import salt.utils.templates

View File

@ -6,7 +6,6 @@ data
'''
# Import python libs
import imp
import os
# Import Salt libs

View File

@ -11,7 +11,6 @@ import logging
import warnings
# Import Salt libs
from salt.utils.jinja import get_template
from salt.utils.yaml import CustomLoader, load
from salt.exceptions import SaltRenderError
import salt.utils.templates

View File

@ -9,7 +9,6 @@ high data format for salt states.
import os
# Import Third Party libs
from mako.template import Template
from salt.utils.yaml import CustomLoader, load
from salt.exceptions import SaltRenderError

View File

@ -33,7 +33,6 @@ import salt.fileclient
from salt.template import (
compile_template,
compile_template_str,
template_shebang,
)
log = logging.getLogger(__name__)

View File

@ -42,7 +42,6 @@ syslog if there is no disk space:
import grp
import os
import pwd
from salt.exceptions import CommandExecutionError
def wait(name,

View File

@ -76,16 +76,13 @@ something like this:
- source: salt://code/flask
'''
# Import Python libs
import codecs
from contextlib import nested # For < 2.7 compat
import os
import shutil
import difflib
import hashlib
import imp
import logging
import tempfile
import traceback
import urlparse
import copy

View File

@ -2,7 +2,6 @@ from winservice import Service, instart
import win32serviceutil
import win32service
import winerror
import os
import salt
import sys

View File

@ -4,18 +4,10 @@ Template render systems
# Import python libs
import codecs
import os
import shutil
import difflib
import hashlib
import imp
import logging
import tempfile
import traceback
try:
import urlparse
except:
import urllib.parse as urlparse
import copy
# Import salt libs
import salt.utils