]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
style fix: 3 blank lines is too many, 0 is too few
authorPierce Lopez <pierce.lopez@gmail.com>
Sun, 31 Dec 2017 18:54:07 +0000 (13:54 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Mon, 1 Jan 2018 20:56:23 +0000 (15:56 -0500)
around functions and classes

E306 expected 1 blank line before a nested definition, found 0
E303 too many blank lines (3)

maint/circlerefs/circlerefs.py
maint/test/redbot/red_test.py
tornado/test/concurrent_test.py
tornado/test/gen_test.py

index fe91a09b47a7eab814372e45a917c1e5319e7bf8..5cc4e1f6de72e1078ff4da1f0423320f258808bd 100644 (file)
@@ -76,7 +76,6 @@ class DummyAsyncHandler(web.RequestHandler):
         raise web.Finish('ok\n')
 
 
-
 application = web.Application([
     (r'/dummy/', DummyHandler),
     (r'/dummyasync/', DummyAsyncHandler),
index e0c6459f07408caa4aa0f8b58eb62dc618494b90..f4733490718794eec6f2e7fb4efcdf91c0b6925c 100644 (file)
@@ -109,10 +109,12 @@ class TestMixin(object):
     def run_redbot(self, url, method, body, headers):
         red = HttpResource(url, method=method, req_body=body,
                            req_hdrs=headers)
+
         def work():
             red.run(thor.stop)
             thor.run()
             self.io_loop.add_callback(self.stop)
+
         thread = threading.Thread(target=work)
         thread.start()
         self.wait()
index 955f410a3879e3bbdd37afeea832f5ba399acf19..bbefb1c6175c7da087617543f575e10d42b8e30d 100644 (file)
@@ -201,6 +201,7 @@ class ReturnFutureTest(AsyncTestCase):
                 app_log.error('%s: %s', context['message'],
                               type(context.get('exception')))
             self.io_loop.asyncio_loop.set_exception_handler(exc_handler)
+
         @gen.coroutine
         def f():
             yield gen.moment
index 199316c7ca3b66249e9586874b264c03005a1003..476035d0bb8ab462ab0f2faf8229b4d8e6c9a668 100644 (file)
@@ -1326,7 +1326,6 @@ class WithTimeoutTest(AsyncTestCase):
                                    executor.submit(lambda: time.sleep(0.01)))
 
 
-
 class WaitIteratorTest(AsyncTestCase):
     @gen_test
     def test_empty_iterator(self):