Commit 9e55b249 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove some unused imports found by pylint.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@948 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 99490a92
......@@ -18,14 +18,12 @@
import logging
from neo.handler import EventHandler
from neo.protocol import MASTER_NODE_TYPE, STORAGE_NODE_TYPE, CLIENT_NODE_TYPE, \
ADMIN_NODE_TYPE, TEMPORARILY_DOWN_STATE
from neo.node import MasterNode, StorageNode, ClientNode, AdminNode
from neo.protocol import STORAGE_NODE_TYPE, TEMPORARILY_DOWN_STATE
from neo.node import StorageNode
from neo import protocol
from neo.exception import PrimaryFailure
from neo.util import dump
class AdminEventHandler(EventHandler):
"""This class deals with events for administrating cluster."""
......
......@@ -18,7 +18,7 @@
import logging
from neo.client.handlers import BaseHandler, AnswerBaseHandler
from neo.protocol import MASTER_NODE_TYPE, STORAGE_NODE_TYPE, CLIENT_NODE_TYPE, \
from neo.protocol import MASTER_NODE_TYPE, STORAGE_NODE_TYPE, \
RUNNING_STATE, TEMPORARILY_DOWN_STATE
from neo.node import MasterNode, StorageNode
from neo.pt import MTPartitionTable as PartitionTable
......
......@@ -19,7 +19,6 @@ import logging
from select import select
from time import time
from neo import protocol
from neo.epoll import Epoll
class IdleEvent(object):
......
......@@ -18,10 +18,8 @@
import logging
from neo import protocol
from neo.protocol import RUNNING_STATE, \
TEMPORARILY_DOWN_STATE, CLIENT_NODE_TYPE, ADMIN_NODE_TYPE
from neo.master.handlers import MasterHandler
from neo.protocol import UnexpectedPacketError
from neo.protocol import UnexpectedPacketError, TEMPORARILY_DOWN_STATE
from neo.node import StorageNode
from neo.util import dump
......
......@@ -17,11 +17,9 @@
import logging
from neo import protocol
from neo.protocol import CLIENT_NODE_TYPE, ADMIN_NODE_TYPE, \
RUNNING_STATE, STORAGE_NODE_TYPE, TEMPORARILY_DOWN_STATE, STOPPING
from neo.protocol import CLIENT_NODE_TYPE
from neo.master.handlers import BaseServiceHandler
from neo import decorators
from neo.util import dump
class ShutdownHandler(BaseServiceHandler):
"""This class deals with events for a shutting down phase."""
......
......@@ -17,7 +17,6 @@
import logging
from neo.protocol import CLIENT_NODE_TYPE, RUNNING_STATE, ADMIN_NODE_TYPE
from neo.master.handlers import MasterHandler
from neo.exception import VerificationFailure
from neo.util import dump
......
......@@ -18,11 +18,8 @@
import logging
from neo.storage.handlers import BaseMasterHandler
from neo.protocol import BROKEN_STATE, \
MASTER_NODE_TYPE, STORAGE_NODE_TYPE, \
DOWN_STATE, TEMPORARILY_DOWN_STATE, HIDDEN_STATE, \
DISCARDED_STATE, OUT_OF_DATE_STATE, UnexpectedPacketError
from neo.node import StorageNode
from neo.protocol import BROKEN_STATE, STORAGE_NODE_TYPE, DOWN_STATE, \
TEMPORARILY_DOWN_STATE, DISCARDED_STATE, OUT_OF_DATE_STATE
class HiddenHandler(BaseMasterHandler):
"""This class implements a generic part of the event handlers."""
......
......@@ -19,8 +19,7 @@ import logging
from neo import protocol
from neo.storage.handlers import BaseMasterHandler
from neo.protocol import TEMPORARILY_DOWN_STATE, DISCARDED_STATE, OUT_OF_DATE_STATE
from neo.node import StorageNode
from neo.protocol import DISCARDED_STATE, OUT_OF_DATE_STATE
from neo.exception import OperationFailure
......
......@@ -18,10 +18,8 @@
import logging
from neo.storage.handlers import BaseMasterHandler
from neo.protocol import TEMPORARILY_DOWN_STATE
from neo import protocol
from neo.util import dump
from neo.node import StorageNode
from neo.exception import OperationFailure
class VerificationHandler(BaseMasterHandler):
......
......@@ -26,7 +26,6 @@ from struct import pack, unpack
from neo.storage.database import DatabaseManager
from neo.exception import DatabaseFailure
from neo.protocol import DISCARDED_STATE
from neo.util import dump
LOG_QUERIES = False
......
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