Clean up lint issues

This commit is contained in:
2022-06-09 12:46:05 +01:00
parent dea3ae84bd
commit 2c35051b54
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
import argparse
import logging
import os
import sys
import argparse
import pkg_resources

View File

@@ -1,7 +1,6 @@
import logging
from prometheus_client import Counter, Summary, make_wsgi_app
from setuptools import Command
from prometheus_client import Counter, Summary
from telegram.ext import CommandHandler, Updater
from smsbot.utils import get_smsbot_version
@@ -44,7 +43,7 @@ class TelegramSmsBot(object):
commands = []
for command in self.updater.dispatcher.handlers[0]:
commands.extend(['/{0}'.format(x) for x in command.command])
commands.extend(['/{0}'.format(cmd) for cmd in command.command])
update.message.reply_markdown('Smsbot v{0}\n\n{1}'.format(get_smsbot_version(), '\n'.join(commands)))
COMMAND_COUNT.inc()