Remove unused imports and variables

This commit is contained in:
Lonami Exo 2020-07-04 12:18:39 +02:00
parent 0f8119c400
commit ab594ed0cb
7 changed files with 6 additions and 11 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,3 @@
import asyncio
import re
from .common import EventBuilder, EventCommon, name_inner_event, _into_id_set

View File

@ -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')

View File

@ -1,4 +1,3 @@
import datetime
import inspect
from .tl import types

View File

@ -1,7 +1,7 @@
import gzip
import struct
from .. import TLObject, TLRequest
from .. import TLObject
class GzipPacked(TLObject):