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