aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-06 23:04:26 +0000
committerGravatar jesopo2019-02-06 23:04:26 +0000
commit7dd1eca7ae6612f918acedaa7eb9fbe8af762172 (patch)
treea6455ef1dd0088c193185752f31737009528b744 /modules
parentAdd more comments, re-seperate out self._ variables and seperate some compound (diff)
signature
Don't use string concat when we're already using %s formatting (sasl.scram)
Diffstat (limited to 'modules')
-rw-r--r--modules/sasl/scram.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sasl/scram.py b/modules/sasl/scram.py
index 719337a6..19ec4e8c 100644
--- a/modules/sasl/scram.py
+++ b/modules/sasl/scram.py
@@ -84,7 +84,7 @@ class SCRAM(object):
client_proof = base64.b64encode(client_proof_xor)
# c=<b64encode("n,,")>,r=<nonce>,p=<proof>
- return auth_noproof + (b",p=%s" % client_proof)
+ return b"%s,p=%s" % (auth_noproof, client_proof)
def server_final(self, data: bytes) -> bool:
pieces = self._get_pieces(data)