tornado_ioloop_logging.py: Ignore because of missing stub.

There is no stub for select.epoll on python 3.  So ignore the
statement which uses it.
This commit is contained in:
Eklavya Sharma 2016-07-05 03:12:31 +05:30 committed by Tim Abbott
parent 9d2a539aaa
commit 976858f536
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ exclude_py2 = []
exclude_py3 = """
zerver/lib/actions.py
zerver/lib/ccache.py
zerver/lib/tornado_ioloop_logging.py
zerver/management/commands/create_stream.py
zerver/management/commands/email-mirror.py
zerver/management/commands/enqueue_file.py

View File

@ -19,7 +19,7 @@ except:
# There isn't a good way to get at what the underlying poll implementation
# will be without actually constructing an IOLoop, so we just assume it will
# be epoll.
orig_poll_impl = select.epoll
orig_poll_impl = select.epoll # type: ignore # There is no stub for select.epoll on python 3
class InstrumentedPollIOLoop(PollIOLoop):
def initialize(self, **kwargs): # type: ignore # TODO investigate likely buggy monkey patching here
super(InstrumentedPollIOLoop, self).initialize(impl=InstrumentedPoll(), **kwargs)