mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-11 19:40:36 +00:00
Make lint happier
This commit is contained in:
@@ -14,7 +14,9 @@ class AuthKey:
|
||||
self.key_id = reader.read_long(signed=False)
|
||||
|
||||
def calc_new_nonce_hash(self, new_nonce, number):
|
||||
"""Calculates the new nonce hash based on the current class fields' values"""
|
||||
"""Calculates the new nonce hash based on
|
||||
the current class fields' values
|
||||
"""
|
||||
with BinaryWriter() as writer:
|
||||
writer.write(new_nonce)
|
||||
writer.write_byte(number)
|
||||
|
||||
@@ -31,7 +31,8 @@ class CdnDecrypter:
|
||||
# https://core.telegram.org/cdn
|
||||
cdn_aes = AESModeCTR(
|
||||
key=cdn_redirect.encryption_key,
|
||||
iv=cdn_redirect.encryption_iv[:12] + (offset >> 4).to_bytes(4, 'big')
|
||||
iv=
|
||||
cdn_redirect.encryption_iv[:12] + (offset >> 4).to_bytes(4, 'big')
|
||||
)
|
||||
|
||||
# Create a new client on said CDN
|
||||
|
||||
@@ -61,7 +61,9 @@ class Factorization:
|
||||
|
||||
@staticmethod
|
||||
def factorize(pq):
|
||||
"""Factorizes the given number and returns both the divisor and the number divided by the divisor"""
|
||||
"""Factorizes the given number and returns both
|
||||
the divisor and the number divided by the divisor
|
||||
"""
|
||||
if sympy:
|
||||
return tuple(sympy.ntheory.factorint(pq).keys())
|
||||
else:
|
||||
|
||||
@@ -10,7 +10,7 @@ from ..extensions import BinaryWriter
|
||||
|
||||
|
||||
# {fingerprint: Crypto.PublicKey.RSA._RSAobj} dictionary
|
||||
_server_keys = { }
|
||||
_server_keys = {}
|
||||
|
||||
|
||||
def get_byte_array(integer):
|
||||
|
||||
Reference in New Issue
Block a user