Commit 3b24314a authored by Alex Willmer's avatar Alex Willmer Committed by David Wilson

Use fully qualified Context

Fixes an undefined variable error found by pylint
parent 57a0aa26
......@@ -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())
......
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