mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
to_bytes() named argument 'length' removed for PyPy (#834)
This commit is contained in:
parent
2e43fb3217
commit
3db104c7bc
|
@ -28,7 +28,7 @@ def get_byte_array(integer):
|
||||||
# Reference: https://core.telegram.org/mtproto/auth_key
|
# Reference: https://core.telegram.org/mtproto/auth_key
|
||||||
return int.to_bytes(
|
return int.to_bytes(
|
||||||
integer,
|
integer,
|
||||||
length=(integer.bit_length() + 8 - 1) // 8, # 8 bits per byte,
|
(integer.bit_length() + 8 - 1) // 8, # 8 bits per byte,
|
||||||
byteorder='big',
|
byteorder='big',
|
||||||
signed=False
|
signed=False
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user