Commit bb26119f authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Fix for pylint not knowing about the existence of __globals__.

It seems that __globals__ isn't known to the pylint tool, and we use
that to recognise the context of the operations. So we have to make
pylint ignore that particular instance.
parent 97a57742
......@@ -435,7 +435,7 @@ class BaseThreadedInput(BaseStreamedInput):
# We'll check whether the name of the module we're in matches the
# caller. If so, we're really inside this test code.
if caller[0].f_globals['__name__'] == \
really_call_ThreadedStreamedInput.__globals__['__name__']:
really_call_ThreadedStreamedInput.__globals__['__name__']: # pylint: disable=no-member
# We're in this test code, so divert to the threaded call
return streamedinput.ThreadedStreamedInput(*args, **kwargs)
else:
......
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