From d4ae956b20effa599a1cb30f7ce79b4b83bc7daa Mon Sep 17 00:00:00 2001 From: Bernardo Heynemann Date: Fri, 14 Feb 2020 23:04:54 +0000 Subject: [PATCH] removing useless instance var - Thanks @znerol --- libthumbor/crypto.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libthumbor/crypto.py b/libthumbor/crypto.py index be382a6..c0e6e05 100644 --- a/libthumbor/crypto.py +++ b/libthumbor/crypto.py @@ -28,17 +28,11 @@ def __init__(self, key): """ Initializes the encryptor with the proper key :param key: secret key to use for hashing. - :param thread_safe: if True (default) CryptoURL will not reuse the - hmac instance on every generate call, - instead a copy of the hmac object will be created. - Consider setting this parameter to False when only one - thread has access to the CryptoURL object at a time. """ if isinstance(key, text_type): key = str(key) self.key = key - self.computed_key = (key * 16)[:16] self.hmac = hmac.new(b(key), digestmod=hashlib.sha1) def generate_new(self, options):