mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +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 | ||||
|     return int.to_bytes( | ||||
|         integer, | ||||
|         length=(integer.bit_length() + 8 - 1) // 8,  # 8 bits per byte, | ||||
|         (integer.bit_length() + 8 - 1) // 8,  # 8 bits per byte, | ||||
|         byteorder='big', | ||||
|         signed=False | ||||
|     ) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user