pep8: Fix E301 pep8 violations.

Fix "E301: expected (1 or 2) blank line" pep8 violations.
This commit is contained in:
Rafid Aslam
2016-11-29 13:22:02 +07:00
committed by Tim Abbott
parent 7a2282986a
commit 41bd88d5ed
35 changed files with 57 additions and 2 deletions

View File

@@ -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)