aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-06 21:16:39 +0000
committerGravatar jesopo2019-02-06 21:16:55 +0000
commitcbdd8d6fc900b26cf1da9e593a773ff3017b1f25 (patch)
treee399928d95f62f013f57ee957e6092748caf1480
parentAdd type annotations to scram util functions (sasl) (diff)
signature
Remove pointless local assign of self._password (sasl.scram)
-rw-r--r--modules/sasl/scram.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/sasl/scram.py b/modules/sasl/scram.py
index fe898613..26fcbc95 100644
--- a/modules/sasl/scram.py
+++ b/modules/sasl/scram.py
@@ -55,9 +55,8 @@ class SCRAM(object):
nonce = pieces[b"r"]
salt = base64.b64decode(pieces[b"s"])
iterations = pieces[b"i"]
- password = self._password
- salted_password = hashlib.pbkdf2_hmac(self._algo, password, salt,
+ salted_password = hashlib.pbkdf2_hmac(self._algo, self._password, salt,
int(iterations), dklen=None)
self._salted_password = salted_password