From 6b4f39428bf522b3563928d27957e011ea2f6f40 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 9 Apr 2019 09:12:48 +0200 Subject: [PATCH] Remove unused imports --- requirements.txt | 1 + royalnet/bots/telegram.py | 1 - royalnet/commands/color.py | 2 +- royalnet/commands/debug_author.py | 2 +- royalnet/commands/debug_create.py | 2 +- royalnet/commands/null.py | 2 +- royalnet/commands/ping.py | 2 +- royalnet/commands/ship.py | 2 +- royalnet/commands/smecds.py | 2 +- royalnet/commands/sync.py | 2 +- royalnet/database/tables/aliases.py | 2 -- 11 files changed, 9 insertions(+), 11 deletions(-) diff --git a/requirements.txt b/requirements.txt index 47259f29..c5203d50 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ websockets>=7.0 pytest>=4.3.1 psycopg2-binary>=2.8 aiohttp>=3.5.4 +Markdown>=3.1 diff --git a/royalnet/bots/telegram.py b/royalnet/bots/telegram.py index 2d32564d..c3bd336b 100644 --- a/royalnet/bots/telegram.py +++ b/royalnet/bots/telegram.py @@ -3,7 +3,6 @@ import asyncio import typing import logging as _logging import sys -import re from ..commands import NullCommand from ..utils import asyncify, Call, Command from ..network import RoyalnetLink, Message diff --git a/royalnet/commands/color.py b/royalnet/commands/color.py index 4c920486..ff9a458f 100644 --- a/royalnet/commands/color.py +++ b/royalnet/commands/color.py @@ -1,4 +1,4 @@ -from ..utils import Command, CommandArgs, Call +from ..utils import Command, Call class ColorCommand(Command): diff --git a/royalnet/commands/debug_author.py b/royalnet/commands/debug_author.py index 7400ee85..145b184b 100644 --- a/royalnet/commands/debug_author.py +++ b/royalnet/commands/debug_author.py @@ -1,4 +1,4 @@ -from ..utils import Command, CommandArgs, Call +from ..utils import Command, Call from ..database.tables import Royal, Telegram diff --git a/royalnet/commands/debug_create.py b/royalnet/commands/debug_create.py index faaedfb2..3b06e7c1 100644 --- a/royalnet/commands/debug_create.py +++ b/royalnet/commands/debug_create.py @@ -1,4 +1,4 @@ -from ..utils import Command, CommandArgs, Call, asyncify +from ..utils import Command, Call, asyncify from ..database.tables import Royal, Alias diff --git a/royalnet/commands/null.py b/royalnet/commands/null.py index 441d090b..f30db9fb 100644 --- a/royalnet/commands/null.py +++ b/royalnet/commands/null.py @@ -1,4 +1,4 @@ -from ..utils import Command, CommandArgs, Call +from ..utils import Command, Call class NullCommand(Command): diff --git a/royalnet/commands/ping.py b/royalnet/commands/ping.py index 04ea42bd..df280dd7 100644 --- a/royalnet/commands/ping.py +++ b/royalnet/commands/ping.py @@ -1,5 +1,5 @@ import asyncio -from ..utils import Command, CommandArgs, Call, InvalidInputError +from ..utils import Command, Call, InvalidInputError class PingCommand(Command): diff --git a/royalnet/commands/ship.py b/royalnet/commands/ship.py index c0b014af..8ec4e661 100644 --- a/royalnet/commands/ship.py +++ b/royalnet/commands/ship.py @@ -1,5 +1,5 @@ import re -from ..utils import Command, CommandArgs, Call, safeformat +from ..utils import Command, Call, safeformat SHIP_RESULT = "💕 {one} + {two} = [b]{result}[/b]" diff --git a/royalnet/commands/smecds.py b/royalnet/commands/smecds.py index 7e8bc21c..6d5616d4 100644 --- a/royalnet/commands/smecds.py +++ b/royalnet/commands/smecds.py @@ -1,5 +1,5 @@ import random -from ..utils import Command, CommandArgs, Call, safeformat +from ..utils import Command, Call, safeformat DS_LIST = ["della secca", "del seccatore", "del secchiello", "del secchio", "del secchione", "del secondino", diff --git a/royalnet/commands/sync.py b/royalnet/commands/sync.py index 2dc7dadd..288ce3c1 100644 --- a/royalnet/commands/sync.py +++ b/royalnet/commands/sync.py @@ -1,6 +1,6 @@ import typing from telegram import Update, User -from ..utils import Command, CommandArgs, Call, asyncify, UnsupportedError +from ..utils import Command, Call, asyncify, UnsupportedError from ..database.tables import Royal, Telegram diff --git a/royalnet/database/tables/aliases.py b/royalnet/database/tables/aliases.py index 7f86ffa6..f88f79d7 100644 --- a/royalnet/database/tables/aliases.py +++ b/royalnet/database/tables/aliases.py @@ -1,8 +1,6 @@ from sqlalchemy import Column, \ Integer, \ String, \ - BigInteger, \ - LargeBinary, \ ForeignKey from sqlalchemy.orm import relationship from .royals import Royal