From f020aca297e8a6c9f7b6a6e08e583847d37edace Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 16 Apr 2018 11:13:07 +0200 Subject: Minor Python cleanups to make flake8 pass with the new rules enabled --- share/rpcauth/rpcauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/rpcauth/rpcauth.py b/share/rpcauth/rpcauth.py index 10cf516732..f9b9787514 100755 --- a/share/rpcauth/rpcauth.py +++ b/share/rpcauth/rpcauth.py @@ -25,7 +25,7 @@ salt = "".join([x[2:] for x in hexseq]) #Create 32 byte b64 password password = base64.urlsafe_b64encode(os.urandom(32)).decode("utf-8") - + m = hmac.new(bytearray(salt, 'utf-8'), bytearray(password, 'utf-8'), "SHA256") result = m.hexdigest() -- cgit v1.2.3