Browse Source

[lint] Remove unused imports

Left over from various refactoring and rewrites.
pull/1521/merge
Hornwitser 7 years ago
committed by Rapptz
parent
commit
d58fc0ccee
  1. 2
      discord/__main__.py
  2. 1
      discord/emoji.py
  3. 2
      discord/ext/commands/bot.py
  4. 1
      discord/ext/commands/context.py
  5. 2
      discord/ext/commands/converter.py
  6. 1
      discord/ext/commands/formatter.py
  7. 2
      discord/gateway.py
  8. 1
      discord/http.py
  9. 2
      discord/invite.py
  10. 1
      discord/iterators.py
  11. 1
      discord/member.py
  12. 2
      discord/message.py
  13. 2
      discord/relationship.py
  14. 2
      discord/role.py
  15. 1
      discord/state.py
  16. 1
      discord/user.py

2
discord/__main__.py

@ -28,8 +28,6 @@ import discord
import argparse
import sys
from pathlib import Path
import os
import re
def core(parser, args):
pass

1
discord/emoji.py

@ -24,7 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import asyncio
from collections import namedtuple
from . import utils

2
discord/ext/commands/bot.py

@ -33,7 +33,7 @@ import sys
import traceback
import re
from .core import GroupMixin, Command, command
from .core import GroupMixin, Command
from .view import StringView
from .context import Context
from .errors import CommandNotFound, CommandError

1
discord/ext/commands/context.py

@ -23,7 +23,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import asyncio
import discord.abc
import discord.utils

2
discord/ext/commands/converter.py

@ -25,12 +25,10 @@ DEALINGS IN THE SOFTWARE.
"""
import discord
import asyncio
import re
import inspect
from .errors import BadArgument, NoPrivateMessage
from .view import StringView
__all__ = [ 'Converter', 'MemberConverter', 'UserConverter',
'TextChannelConverter', 'InviteConverter', 'RoleConverter',

1
discord/ext/commands/formatter.py

@ -26,7 +26,6 @@ DEALINGS IN THE SOFTWARE.
import itertools
import inspect
import asyncio
from .core import GroupMixin, Command
from .errors import CommandError

2
discord/gateway.py

@ -30,7 +30,7 @@ import websockets
import asyncio
from . import utils
from .activity import create_activity, _ActivityTag
from .activity import _ActivityTag
from .errors import ConnectionClosed, InvalidArgument
import logging
import zlib, json

1
discord/http.py

@ -30,7 +30,6 @@ import json
import sys
import logging
import weakref
import datetime
from urllib.parse import quote as _uriquote
log = logging.getLogger(__name__)

2
discord/invite.py

@ -24,8 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import asyncio
from .utils import parse_time
from .mixins import Hashable
from .object import Object

1
discord/iterators.py

@ -24,7 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import sys
import asyncio
import datetime

1
discord/member.py

@ -24,7 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import asyncio
import itertools
import copy

2
discord/message.py

@ -32,7 +32,7 @@ from .reaction import Reaction
from .emoji import Emoji, PartialEmoji
from .calls import CallMessage
from .enums import MessageType, try_enum
from .errors import InvalidArgument, ClientException, HTTPException, NotFound
from .errors import InvalidArgument, ClientException
from .embeds import Embed
class Attachment:

2
discord/relationship.py

@ -26,8 +26,6 @@ DEALINGS IN THE SOFTWARE.
from .enums import RelationshipType, try_enum
import asyncio
class Relationship:
"""Represents a relationship in Discord.

2
discord/role.py

@ -24,8 +24,6 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
import asyncio
from .permissions import Permissions
from .errors import InvalidArgument
from .colour import Colour

1
discord/state.py

@ -35,7 +35,6 @@ from .raw_models import *
from .member import Member
from .role import Role
from .enums import ChannelType, try_enum, Status
from .calls import GroupCall
from . import utils
from .embeds import Embed

1
discord/user.py

@ -31,7 +31,6 @@ from .errors import ClientException, InvalidArgument
from collections import namedtuple
import discord.abc
import asyncio
VALID_STATIC_FORMATS = {"jpeg", "jpg", "webp", "png"}
VALID_AVATAR_FORMATS = VALID_STATIC_FORMATS | {"gif"}

Loading…
Cancel
Save