Skip to content

Commit

Permalink
fix(RabbitMQ): pylint C0301: Line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed Dec 10, 2024
1 parent 76285c9 commit e589f46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion khl/rabbitmq/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ def __init__(self, login: str, password: str, host: str = '127.0.0.1', port: int
salt_encoded = b'rabbitmq in khl.py'

# use pbkdf2_hmac to generate key with key_digits
self._aes_key = hashlib.pbkdf2_hmac('sha256', key_string.encode('utf-8'), salt_encoded, 100000, dklen=key_digits)
self._aes_key = hashlib.pbkdf2_hmac(
'sha256',
key_string.encode('utf-8'),
salt_encoded,
100000,
dklen=key_digits
)

def decrypt(self, data: bytes) -> bytes:
""" decrypt data
Expand Down

0 comments on commit e589f46

Please sign in to comment.