Commit 7d0a1e25 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use variable from current context.

Just to avoid complains from pylint :)

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1883 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c1ba5715
......@@ -217,7 +217,7 @@ class ListeningConnection(BaseConnection):
BaseConnection.__init__(self, event_manager, handler,
addr = addr,
connector_handler = connector_handler)
connector = self.connector_handler()
connector = connector_handler()
connector.makeListeningConnection(addr)
self.setConnector(connector)
self.em.addReader(self)
......@@ -528,7 +528,7 @@ class ClientConnection(Connection):
connector_handler = connector_handler)
handler.connectionStarted(self)
try:
connector = self.connector_handler()
connector = connector_handler()
self.setConnector(connector)
try:
connector.makeClientConnection(addr)
......
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