From 3b24314a8b08d8e87fdb4403cc4c58aaf1909f6f Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 21 Sep 2017 19:50:20 +0100 Subject: [PATCH] Use fully qualified Context Fixes an undefined variable error found by pylint --- mitogen/tcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/tcp.py b/mitogen/tcp.py index b0b7c6d3..ace294ef 100644 --- a/mitogen/tcp.py +++ b/mitogen/tcp.py @@ -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())