diff options
| author | Hornwitser <[email protected]> | 2018-08-01 15:24:33 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:58 -0500 |
| commit | efb4ff850ea476d2aabc8ab4069a6d52ad602f42 (patch) | |
| tree | 25d705c284c37a15d72f2419e9f6f1010a2f9e08 /discord/http.py | |
| parent | [commands] Remove duplicated quote entries (diff) | |
| download | discord.py-efb4ff850ea476d2aabc8ab4069a6d52ad602f42.tar.xz discord.py-efb4ff850ea476d2aabc8ab4069a6d52ad602f42.zip | |
[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.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/discord/http.py b/discord/http.py index 25d3e1a1..a0784e49 100644 --- a/discord/http.py +++ b/discord/http.py @@ -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': |