Commit 30e4e741 authored by Iustin Pop's avatar Iustin Pop

Fix unused imports or add silences where needed

In some cases pylint doesn't parse the import correctly, so we add
silences; but there are also many cases of unused imports, which we
simply remove.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 527a15ac
......@@ -48,7 +48,6 @@ from ganeti.confd import server as confd_server
from ganeti import constants
from ganeti import errors
from ganeti import daemon
from ganeti import ssconf
class ConfdAsyncUDPServer(daemon.AsyncUDPSocket):
......
......@@ -31,7 +31,6 @@
import os
import sys
import SocketServer
import logging
import signal
......@@ -47,7 +46,7 @@ from ganeti import http
from ganeti import utils
from ganeti import storage
import ganeti.http.server
import ganeti.http.server # pylint: disable-msg=W0611
queue_lock = None
......
......@@ -26,25 +26,21 @@
# C0103: Invalid name ganeti-watcher
import glob
import logging
import optparse
import sys
import os
import os.path
import signal
from ganeti import constants
from ganeti import errors
from ganeti import http
from ganeti import daemon
from ganeti import ssconf
from ganeti import utils
from ganeti import luxi
from ganeti import serializer
from ganeti.rapi import connector
import ganeti.http.auth
import ganeti.http.auth # pylint: disable-msg=W0611
import ganeti.http.server
......
......@@ -35,7 +35,6 @@ import os
import sys
import time
import logging
import errno
from optparse import OptionParser
from ganeti import utils
......
......@@ -50,7 +50,6 @@ confirming what you already got.
# E0203: Access to member %r before its definition, since we use
# objects.py which doesn't explicitely initialise its members
import socket
import time
import random
......
......@@ -26,7 +26,6 @@ import BaseHTTPServer
import cgi
import logging
import os
import select
import socket
import time
import signal
......
......@@ -27,10 +27,9 @@ import os
import os.path
import time
import logging
from cStringIO import StringIO
from ganeti import constants
from ganeti import errors
from ganeti import errors # pylint: disable-msg=W0611
from ganeti import utils
from ganeti.hypervisor import hv_base
from ganeti.errors import HypervisorError
......
......@@ -23,8 +23,6 @@
"""
import os
import os.path
import logging
from cStringIO import StringIO
......
......@@ -31,8 +31,6 @@ import sys
from ganeti.cli import *
from ganeti import opcodes
from ganeti import constants
from ganeti import errors
from ganeti import utils
_VALUE_TRUE = "true"
......
......@@ -32,7 +32,6 @@ import time
from ganeti.cli import *
from ganeti import cli
from ganeti import opcodes
from ganeti import constants
from ganeti import utils
from ganeti import errors
......
......@@ -29,7 +29,6 @@ import sys
import os
import itertools
import simplejson
import time
from cStringIO import StringIO
from ganeti.cli import *
......
......@@ -29,7 +29,6 @@
import sys
from ganeti.cli import *
from ganeti import cli
from ganeti import opcodes
from ganeti import utils
from ganeti import constants
......
......@@ -31,7 +31,6 @@ import sys
from ganeti.cli import *
from ganeti import opcodes
from ganeti import utils
from ganeti import constants
def ListOS(opts, args):
......
......@@ -32,7 +32,6 @@ import os.path
import sys
import optparse
import logging
import errno
from ganeti import constants
from ganeti import serializer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment