mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Remove unused imports and variables
This commit is contained in:
parent
0f8119c400
commit
ab594ed0cb
|
@ -3,7 +3,6 @@ import asyncio
|
|||
import collections
|
||||
import logging
|
||||
import platform
|
||||
import sys
|
||||
import time
|
||||
import typing
|
||||
|
||||
|
@ -14,7 +13,7 @@ from ..extensions import markdown
|
|||
from ..network import MTProtoSender, Connection, ConnectionTcpFull, TcpMTProxy
|
||||
from ..sessions import Session, SQLiteSession, MemorySession
|
||||
from ..statecache import StateCache
|
||||
from ..tl import TLObject, functions, types
|
||||
from ..tl import functions, types
|
||||
from ..tl.alltlobjects import LAYER
|
||||
|
||||
DEFAULT_DC_ID = 2
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from .common import EventBuilder, EventCommon, name_inner_event
|
||||
from .. import utils, helpers
|
||||
from ..tl import types, functions
|
||||
from .. import utils
|
||||
from ..tl import types
|
||||
|
||||
|
||||
@name_inner_event
|
||||
|
@ -398,7 +398,7 @@ class ChatAction(EventBuilder):
|
|||
try:
|
||||
self._input_users.append(utils.get_input_peer(self._entities[user_id]))
|
||||
continue
|
||||
except (KeyError, TypeError) as e:
|
||||
except (KeyError, TypeError):
|
||||
pass
|
||||
|
||||
# If missing, try from the entity cache
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import abc
|
||||
import asyncio
|
||||
import itertools
|
||||
import warnings
|
||||
|
||||
from .. import utils
|
||||
from ..tl import TLObject, types, functions
|
||||
from ..tl import TLObject, types
|
||||
from ..tl.custom.chatgetter import ChatGetter
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import asyncio
|
||||
import re
|
||||
|
||||
from .common import EventBuilder, EventCommon, name_inner_event, _into_id_set
|
||||
|
|
|
@ -162,7 +162,6 @@ def compute_check(request: types.account.Password, password: str):
|
|||
|
||||
def generate_and_check_random():
|
||||
random_size = 256
|
||||
import time
|
||||
while True:
|
||||
random = os.urandom(random_size)
|
||||
a = int.from_bytes(random, 'big')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import datetime
|
||||
import inspect
|
||||
|
||||
from .tl import types
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import gzip
|
||||
import struct
|
||||
|
||||
from .. import TLObject, TLRequest
|
||||
from .. import TLObject
|
||||
|
||||
|
||||
class GzipPacked(TLObject):
|
||||
|
|
Loading…
Reference in New Issue
Block a user