Replace @gen.coroutine/yield with async/await

This commit is contained in:
Erik Sundell
2020-11-04 04:41:48 +01:00
parent 2a1d341586
commit e1166ec834
10 changed files with 43 additions and 77 deletions

View File

@@ -23,7 +23,6 @@ from urllib.parse import quote
from urllib.parse import urlencode
import requests
from tornado.gen import coroutine
from tornado.httputil import url_concat
from tornado.log import app_log
from tornado.web import HTTPError
@@ -950,8 +949,7 @@ class HubOAuthCallbackHandler(HubOAuthenticated, RequestHandler):
.. versionadded: 0.8
"""
@coroutine
def get(self):
async def get(self):
error = self.get_argument("error", False)
if error:
msg = self.get_argument("error_description", error)