diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-16 11:13:07 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-16 17:25:11 +0200 |
commit | f020aca297e8a6c9f7b6a6e08e583847d37edace (patch) | |
tree | b7573c8faefcf5c92d21f1bd297fc72a8da3393f /share | |
parent | 0d6992168c2bda85b18fda8f6dea08da433a0dc9 (diff) |
Minor Python cleanups to make flake8 pass with the new rules enabled
Diffstat (limited to 'share')
-rwxr-xr-x | share/rpcauth/rpcauth.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |