[lint] Fix import order

Reorder imports to be consistenly grouped by standard library, third
party library, and local modules in that order thoughout the library.
This commit is contained in:
Hornwitser
2018-08-01 15:24:33 +02:00
committed by Rapptz
parent ed6451b9da
commit efb4ff850e
19 changed files with 86 additions and 73 deletions

View File

@ -24,19 +24,20 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import aiohttp
import asyncio
import json
import sys
import logging
import weakref
import sys
from urllib.parse import quote as _uriquote
import weakref
log = logging.getLogger(__name__)
import aiohttp
from .errors import HTTPException, Forbidden, NotFound, LoginFailure, GatewayNotFound
from . import __version__, utils
log = logging.getLogger(__name__)
async def json_or_text(response):
text = await response.text(encoding='utf-8')
if response.headers['content-type'] == 'application/json':