From: Ben Darnell Date: Sun, 18 Mar 2018 17:31:29 +0000 (-0400) Subject: Run new autopep8 X-Git-Tag: v5.1.0b1~39^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d55627b557ea83edf01821df4dde565b58b33bf9;p=thirdparty%2Ftornado.git Run new autopep8 --- diff --git a/tornado/gen.py b/tornado/gen.py index 0ef7c9fc5..ef70374a7 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -1195,7 +1195,7 @@ class Runner(object): elif not self.future.done(): def inner(f): # Break a reference cycle to speed GC. - f = None # noqa + f = None # noqa self.run() self.io_loop.add_future( self.future, inner) diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py index e184625ec..a76d9eaee 100644 --- a/tornado/test/httpclient_test.py +++ b/tornado/test/httpclient_test.py @@ -608,6 +608,7 @@ class SyncHTTPClientTest(unittest.TestCase): # the client finishes with the response (this is noticeable # with http/2, which leaves a Future with an unexamined # StreamClosedError on the loop). + @gen.coroutine def slow_stop(): # The number of iterations is difficult to predict. Typically, diff --git a/tornado/test/import_test.py b/tornado/test/import_test.py index d8cf14a55..0e981482e 100644 --- a/tornado/test/import_test.py +++ b/tornado/test/import_test.py @@ -48,6 +48,8 @@ class ImportTest(unittest.TestCase): def test_import_aliases(self): # Ensure we don't delete formerly-documented aliases accidentally. - import tornado.ioloop, tornado.gen, tornado.util + import tornado.ioloop + import tornado.gen + import tornado.util self.assertIs(tornado.ioloop.TimeoutError, tornado.util.TimeoutError) self.assertIs(tornado.gen.TimeoutError, tornado.util.TimeoutError)