mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +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 collections
 | 
				
			||||||
import logging
 | 
					import logging
 | 
				
			||||||
import platform
 | 
					import platform
 | 
				
			||||||
import sys
 | 
					 | 
				
			||||||
import time
 | 
					import time
 | 
				
			||||||
import typing
 | 
					import typing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +13,7 @@ from ..extensions import markdown
 | 
				
			||||||
from ..network import MTProtoSender, Connection, ConnectionTcpFull, TcpMTProxy
 | 
					from ..network import MTProtoSender, Connection, ConnectionTcpFull, TcpMTProxy
 | 
				
			||||||
from ..sessions import Session, SQLiteSession, MemorySession
 | 
					from ..sessions import Session, SQLiteSession, MemorySession
 | 
				
			||||||
from ..statecache import StateCache
 | 
					from ..statecache import StateCache
 | 
				
			||||||
from ..tl import TLObject, functions, types
 | 
					from ..tl import functions, types
 | 
				
			||||||
from ..tl.alltlobjects import LAYER
 | 
					from ..tl.alltlobjects import LAYER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DEFAULT_DC_ID = 2
 | 
					DEFAULT_DC_ID = 2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
from .common import EventBuilder, EventCommon, name_inner_event
 | 
					from .common import EventBuilder, EventCommon, name_inner_event
 | 
				
			||||||
from .. import utils, helpers
 | 
					from .. import utils
 | 
				
			||||||
from ..tl import types, functions
 | 
					from ..tl import types
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@name_inner_event
 | 
					@name_inner_event
 | 
				
			||||||
| 
						 | 
					@ -398,7 +398,7 @@ class ChatAction(EventBuilder):
 | 
				
			||||||
                    try:
 | 
					                    try:
 | 
				
			||||||
                        self._input_users.append(utils.get_input_peer(self._entities[user_id]))
 | 
					                        self._input_users.append(utils.get_input_peer(self._entities[user_id]))
 | 
				
			||||||
                        continue
 | 
					                        continue
 | 
				
			||||||
                    except (KeyError, TypeError) as e:
 | 
					                    except (KeyError, TypeError):
 | 
				
			||||||
                        pass
 | 
					                        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    # If missing, try from the entity cache
 | 
					                    # If missing, try from the entity cache
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,9 @@
 | 
				
			||||||
import abc
 | 
					import abc
 | 
				
			||||||
import asyncio
 | 
					import asyncio
 | 
				
			||||||
import itertools
 | 
					 | 
				
			||||||
import warnings
 | 
					import warnings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .. import utils
 | 
					from .. import utils
 | 
				
			||||||
from ..tl import TLObject, types, functions
 | 
					from ..tl import TLObject, types
 | 
				
			||||||
from ..tl.custom.chatgetter import ChatGetter
 | 
					from ..tl.custom.chatgetter import ChatGetter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,3 @@
 | 
				
			||||||
import asyncio
 | 
					 | 
				
			||||||
import re
 | 
					import re
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .common import EventBuilder, EventCommon, name_inner_event, _into_id_set
 | 
					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():
 | 
					    def generate_and_check_random():
 | 
				
			||||||
        random_size = 256
 | 
					        random_size = 256
 | 
				
			||||||
        import time
 | 
					 | 
				
			||||||
        while True:
 | 
					        while True:
 | 
				
			||||||
            random = os.urandom(random_size)
 | 
					            random = os.urandom(random_size)
 | 
				
			||||||
            a = int.from_bytes(random, 'big')
 | 
					            a = int.from_bytes(random, 'big')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,3 @@
 | 
				
			||||||
import datetime
 | 
					 | 
				
			||||||
import inspect
 | 
					import inspect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .tl import types
 | 
					from .tl import types
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
import gzip
 | 
					import gzip
 | 
				
			||||||
import struct
 | 
					import struct
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .. import TLObject, TLRequest
 | 
					from .. import TLObject
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class GzipPacked(TLObject):
 | 
					class GzipPacked(TLObject):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user