Use fully qualified Context

Fixes an undefined variable error found by pylint
This commit is contained in:
Alex Willmer 2017-09-21 19:50:20 +01:00 committed by David Wilson
parent 57a0aa26bf
commit 3b24314a8b
1 changed files with 1 additions and 1 deletions

View File

@ -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())