From f4182376f13f9f801cd5b26517ba54dd6daa3777 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 8 Jan 2018 12:01:38 +0100 Subject: [PATCH] Move utils.calc_msg_key into auth_key (cyclic imports py3.4) --- telethon/crypto/auth_key.py | 5 +++-- telethon/helpers.py | 5 ----- telethon_tests/crypto_test.py | 7 ------- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/telethon/crypto/auth_key.py b/telethon/crypto/auth_key.py index 679e62ff..a6c0675b 100644 --- a/telethon/crypto/auth_key.py +++ b/telethon/crypto/auth_key.py @@ -4,7 +4,6 @@ This module holds the AuthKey class. import struct from hashlib import sha1 -from .. import helpers as utils from ..extensions import BinaryReader @@ -36,4 +35,6 @@ class AuthKey: """ new_nonce = new_nonce.to_bytes(32, 'little', signed=True) data = new_nonce + struct.pack('