Commit 40ba937d authored by Vincent Pelletier's avatar Vincent Pelletier

Move import to top-level.

parent 6c9dccb2
...@@ -22,6 +22,7 @@ from neo.lib.protocol import NodeTypes, Packets, NotReadyError ...@@ -22,6 +22,7 @@ from neo.lib.protocol import NodeTypes, Packets, NotReadyError
from neo.lib.protocol import ProtocolError, BrokenNodeDisallowedError from neo.lib.protocol import ProtocolError, BrokenNodeDisallowedError
from neo.lib.util import dump from neo.lib.util import dump
from .storage import StorageOperationHandler from .storage import StorageOperationHandler
from .client import ClientOperationHandler
class IdentificationHandler(EventHandler): class IdentificationHandler(EventHandler):
""" Handler used for incoming connections during operation state """ """ Handler used for incoming connections during operation state """
...@@ -50,7 +51,6 @@ class IdentificationHandler(EventHandler): ...@@ -50,7 +51,6 @@ class IdentificationHandler(EventHandler):
raise BrokenNodeDisallowedError raise BrokenNodeDisallowedError
# choose the handler according to the node type # choose the handler according to the node type
if node_type == NodeTypes.CLIENT: if node_type == NodeTypes.CLIENT:
from .client import ClientOperationHandler
handler = ClientOperationHandler handler = ClientOperationHandler
if node is None: if node is None:
node = app.nm.createClient(uuid=uuid) node = app.nm.createClient(uuid=uuid)
......
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