mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
pep8: Fix E301 pep8 violations.
Fix "E301: expected (1 or 2) blank line" pep8 violations.
This commit is contained in:
@@ -11,6 +11,7 @@ from django.conf import settings
|
||||
try:
|
||||
# Tornado 2.4
|
||||
orig_poll_impl = ioloop._poll # type: ignore # cross-version type variation is hard for mypy
|
||||
|
||||
def instrument_tornado_ioloop():
|
||||
# type: () -> None
|
||||
ioloop._poll = InstrumentedPoll # type: ignore # cross-version type variation is hard for mypy
|
||||
@@ -21,6 +22,7 @@ except:
|
||||
# will be without actually constructing an IOLoop, so we just assume it will
|
||||
# be 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)
|
||||
|
||||
Reference in New Issue
Block a user