]> git.ipfire.org Git - thirdparty/tornado.git/commit
auth: Fix example code 2881/head
authorBen Darnell <ben@cockroachlabs.com>
Sat, 20 Jun 2020 17:09:59 +0000 (13:09 -0400)
committerBen Darnell <ben@cockroachlabs.com>
Sat, 20 Jun 2020 17:09:59 +0000 (13:09 -0400)
commita52f76c900a0372264508390c52ab29f3c000254
tree23f574f9ba92ffd10ffa82fb09f7a0a3c4b4886f
parentd2b6069b3a0dc6201eaed66bb0d336ac3445ece5
auth: Fix example code

Continuation of #2811

The oauth2 version of authorize_redirect is no longer a coroutine, so
don't use await in example code. The oauth1 version is still a
coroutine, but one twitter example was incorrectly calling it with
yield instead of await.
tornado/auth.py