Use fully qualified Context
Fixes an undefined variable error found by pylint
This commit is contained in:
parent
57a0aa26bf
commit
3b24314a8b
|
@ -21,7 +21,7 @@ class Listener(mitogen.core.BasicStream):
|
|||
|
||||
def on_receive(self, broker):
|
||||
sock, addr = self._sock.accept()
|
||||
context = Context(self._broker, name=addr)
|
||||
context = mitogen.core.Context(self._broker, name=addr)
|
||||
stream = mitogen.core.Stream(context)
|
||||
stream.accept(sock.fileno(), sock.fileno())
|
||||
|
||||
|
|
Loading…
Reference in New Issue