From 37f9b127e4e704564c7cc1f986517ad462912f72 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sun, 8 Aug 2021 00:43:25 +0300 Subject: remove unused stuff --- main.py | 8 +------- strings.py | 12 ------------ 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 strings.py diff --git a/main.py b/main.py index 60df15d..327d90a 100644 --- a/main.py +++ b/main.py @@ -1,17 +1,11 @@ #!/usr/bin/env python3 -import logging, re, datetime, json, subprocess, os +import logging -from typing import Optional from argparse import ArgumentParser -from html import escape import socket -from pprint import pprint -from time import sleep -from strings import lang as _ from telegram import ( Update, ParseMode, - KeyboardButton, ReplyKeyboardMarkup ) from telegram.ext import ( diff --git a/strings.py b/strings.py deleted file mode 100644 index 80b7dac..0000000 --- a/strings.py +++ /dev/null @@ -1,12 +0,0 @@ -__strings = { - 'Включать': 'Status', - 'generation': 'Generation', - 'gs': 'GS', - 'ri': 'RI', - 'errors': 'Errors' -} - - -def lang(key): - global __strings - return __strings[key] if key in __strings else f'{{{key}}}' -- cgit v1.2.3