]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
style fix: closing bracket indent
authorPierce Lopez <pierce.lopez@gmail.com>
Sun, 31 Dec 2017 18:44:42 +0000 (13:44 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Mon, 1 Jan 2018 20:56:07 +0000 (15:56 -0500)
E123 closing bracket does not match indentation of opening bracket's line

demos/benchmark/stack_context_benchmark.py
demos/chat/chatdemo.py
demos/websocket/chatdemo.py
docs/conf.py
maint/scripts/test_resolvers.py
maint/test/redbot/red_test.py
maint/test/websocket/server.py
maint/vm/windows/bootstrap.py
setup.py
tornado/test/ioloop_test.py
tornado/test/options_test.py

index 43d003c291e423e1337d93431372da212a402aba..158f06520a0f2d928db617dde0441f276b602069 100755 (executable)
@@ -66,7 +66,7 @@ def main():
         'ExceptionBenchmark().call_wrapped(50)',
         'ExceptionBenchmark().enter_exit(500)',
         'ExceptionBenchmark().call_wrapped(500)',
-        ]
+    ]
     for cmd in cmds:
         print(cmd)
         subprocess.check_call(base_cmd + [cmd])
index b4978bbd9cdbf16992577da7a70c2e4854535761..89149c4209a930f130751efdc1896c8e80273094 100755 (executable)
@@ -117,13 +117,13 @@ def main():
             (r"/", MainHandler),
             (r"/a/message/new", MessageNewHandler),
             (r"/a/message/updates", MessageUpdatesHandler),
-            ],
+        ],
         cookie_secret="__TODO:_GENERATE_YOUR_OWN_RANDOM_VALUE_HERE__",
         template_path=os.path.join(os.path.dirname(__file__), "templates"),
         static_path=os.path.join(os.path.dirname(__file__), "static"),
         xsrf_cookies=True,
         debug=options.debug,
-        )
+    )
     app.listen(options.port)
     tornado.ioloop.IOLoop.current().start()
 
index 5642f1fd0195f1c83d4e4efada5c3d1307c62a83..36b0ed06d562c51889a5419a3ca2927fec3f0f3b 100755 (executable)
@@ -87,7 +87,7 @@ class ChatSocketHandler(tornado.websocket.WebSocketHandler):
         chat = {
             "id": str(uuid.uuid4()),
             "body": parsed["body"],
-            }
+        }
         chat["html"] = tornado.escape.to_basestring(
             self.render_string("message.html", message=chat))
 
index 8b7cdf626ef072727fdeaee8abb97102dcdb985a..54eb65fb1ee6f39edb42675d6de71e07684cbe00 100644 (file)
@@ -18,7 +18,7 @@ extensions = [
     "sphinx.ext.doctest",
     "sphinx.ext.intersphinx",
     "sphinx.ext.viewcode",
-    ]
+]
 
 primary_domain = 'py'
 default_role = 'py:obj'
@@ -36,7 +36,7 @@ coverage_ignore_modules = [
     "tornado.platform.asyncio",
     "tornado.platform.caresresolver",
     "tornado.platform.twisted",
-    ]
+]
 # I wish this could go in a per-module file...
 coverage_ignore_classes = [
     # tornado.gen
@@ -56,7 +56,7 @@ coverage_ignore_classes = [
     "WebSocketProtocol",
     "WebSocketProtocol13",
     "WebSocketProtocol76",
-    ]
+]
 
 coverage_ignore_functions = [
     # various modules
@@ -76,11 +76,11 @@ html_favicon = 'favicon.ico'
 
 latex_documents = [
     ('index', 'tornado.tex', 'Tornado Documentation', 'The Tornado Authors', 'manual', False),
-    ]
+]
 
 intersphinx_mapping = {
     'python': ('https://docs.python.org/3.6/', None),
-    }
+}
 
 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
 
index 7a1ad358f2765ea22d57228a67174777b961ddbb..971395ba03d319b51adff5668249631ffa97d22b 100644 (file)
@@ -44,7 +44,7 @@ def main():
         'unspec': socket.AF_UNSPEC,
         'inet': socket.AF_INET,
         'inet6': socket.AF_INET6,
-        }[options.family]
+    }[options.family]
 
     for host in args:
         print('Resolving %s' % host)
index 7dd08b7ccdfe5a7915f5b7e4afb2a5ce4a0c7ef8..e0c6459f07408caa4aa0f8b58eb62dc618494b90 100644 (file)
@@ -49,7 +49,7 @@ class TestMixin(object):
             ('/post', PostHandler),
             ('/chunked', ChunkedHandler),
             ('/cache/(.*)', CacheHandler),
-            ]
+        ]
 
     def get_app_kwargs(self):
         return dict(static_path='.')
@@ -62,7 +62,7 @@ class TestMixin(object):
             # For our small test responses the Content-Encoding header
             # wipes out any gains from compression
             rs.CONNEG_GZIP_BAD,
-            ]
+        ]
 
     def get_allowed_errors(self):
         return []
@@ -245,7 +245,7 @@ class GzipHTTPTest(AsyncHTTPTestCase, TestMixin):
             # it doesn't seem likely to cause any problems as long as we're
             # using the correct Vary header.
             rs.VARY_ETAG_DOESNT_CHANGE,
-            ]
+        ]
 
 if __name__ == '__main__':
     parse_command_line()
index 602cc506db22bf9422f5a443045033269269fe22..40b5eeabaffb3025567a2ce42fd283845c34de47 100644 (file)
@@ -18,6 +18,6 @@ if __name__ == '__main__':
     parse_command_line()
     app = Application([
             ('/', EchoHandler),
-            ])
+    ])
     app.listen(options.port, address='127.0.0.1')
     IOLoop.instance().start()
index c69dc2864f2296f1eab2b3783e30bac8eba99b4c..d481d034d5573ddd0c54a0b47ff88d6fd08da531 100644 (file)
@@ -30,7 +30,7 @@ TMPDIR = r'c:\tornado_bootstrap'
 PYTHON_VERSIONS = [
     (r'c:\python27\python.exe', 'http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi'),
     (r'c:\python36\python.exe', 'http://www.python.org/ftp/python/3.6.0/python-3.6.0.msi'),
-    ]
+]
 
 SCRIPTS_DIR = r'c:\python27\scripts'
 EASY_INSTALL = os.path.join(SCRIPTS_DIR, 'easy_install.exe')
index 33e65228018225b9396ed1671784839d494cba29..f9254d931a6342306db984f96e965f9b120d1605 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -171,8 +171,8 @@ setup(
             "templates/utf8.html",
             "test.crt",
             "test.key",
-            ],
-        },
+        ],
+    },
     author="Facebook",
     author_email="python-tornado@googlegroups.com",
     url="http://www.tornadoweb.org/",
@@ -188,6 +188,6 @@ setup(
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
-        ],
+    ],
     **kwargs
 )
index ade6a379baa502f3a208122d025d5af5ac6855d9..d5cbebd008ecdbdae274bf74ebe7b36b1040ef62 100644 (file)
@@ -640,7 +640,7 @@ class TestIOLoopFutures(AsyncTestCase):
         res = yield [
             namespace["async_wrapper"](event1, event2),
             namespace["async_wrapper"](event2, event1)
-            ]
+        ]
 
         self.assertEqual([event1, event2], res)
 
index 1a0ac8fb84233afbac92d79b9c527867d69568d9..974210b0037b5de1aee189e2878618a43f64deaa 100644 (file)
@@ -240,7 +240,7 @@ class OptionsTest(unittest.TestCase):
             ('foo_bar', 'foo_bar'),
             ('foo-bar', 'foo_bar'),
             ('foo_bar', 'foo-bar'),
-            ]
+        ]
         for a, b in tests:
             with subTest(self, a=a, b=b):
                 options = OptionParser()