tornado.stack_contextmodule and most callback arguments throughout the package. All removed APIs emittedDeprecationWarning when used in Tornado 5.1, so running your application with the -WdPython command-line flag or the environment variable PYTHONWARNINGS=d should tell you whether your application is ready to move to Tornado 6.0..WebSocketHandler.get is now a coroutine and must be called accordingly in any subclasses that override this method (but note that overriding get is not recommended; either prepare oropen should be used instead).mypy. These annotations will be used when type-checking your application with mypy, and may be usable in editors and other tools.tornado.authcallback arguments in this package have been removed. Use the coroutine interfaces instead.OAuthMixin._oauth_get_user method has been removed. Override _oauth_get_user_futureinstead.tornado.concurrentcallback argument to run_on_executor has been removed.return_future has been removed.tornado.genengine, YieldPoint, Callback, Wait, WaitAll, MultiYieldPoint, and Task.@gen.coroutine no longer accept callback arguments.tornado.httpclientraise_error=False has changed. Now only suppresses the errors raised due to completed responses with non-200 status codes (previously it suppressed all errors).callback argument to AsyncHTTPClient.fetch has been removed.tornado.httputilHTTPServerRequest.write has been removed. Use the methods of request.connection instead.Content-Encoding values now log warnings only for content types that we would otherwise attempt to parse.tornado.ioloopIOLoop.set_blocking_signal_threshold, IOLoop.set_blocking_log_threshold, IOLoop.log_stack, and IOLoop.handle_callback_exception have been removed.IOLoop.add_callback.tornado.iostreamcallback arguments in this module have been removed except for BaseIOStream.set_close_callback.streaming_callback arguments to BaseIOStream.read_bytes andBaseIOStream.read_until_close have been removed.tornado.logtornado.netutilgetaddrinfo are now sorted by address family to avoid partial failures and deadlocks.tornado.platform.twistedTornadoReactor and TwistedIOLoop have been removed.tornado.simple_httpclientnetwork_interface request argument to specify the source IP for the connection.Location header, the response is raised or returned directly instead of trying and failing to follow the redirect.POST will no longer be transformed into GETrequests. 301 (permanent) redirects are now treated the same way as 302 (temporary) and 303 (see other) redirects in this respect.body_producer.tornado.tcpserverTCPServer.start now supports a max_restarts argument (same as fork_processes).tornado.testingAsyncHTTPTestCase now drops all references to the Application during tearDown, allowing its memory to be reclaimed sooner.AsyncTestCase now cancels all pending coroutines in tearDown, in an effort to reduce warnings from the python runtime about coroutines that were not awaited. Note that this may causeasyncio.CancelledError to be logged in other places. Coroutines that expect to be running at test shutdown may need to catch this exception.tornado.webasynchronous decorator has been removed.callback argument to RequestHandler.flush has been removed.StaticFileHandler now supports large negative values for the Range header and returns an appropriate error for end > start.expires_days in xsrf_cookie_kwargs.tornado.websocketopen() are now caught correctly when this method is a coroutine.tornado.wsgiWSGIApplication and WSGIAdapter have been removed.