mirror of https://github.com/zulip/zulip.git
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:
parent
9d2a539aaa
commit
976858f536
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue