diff options
| author | 2019-02-06 23:04:26 +0000 | |
|---|---|---|
| committer | 2019-02-06 23:04:26 +0000 | |
| commit | 7dd1eca7ae6612f918acedaa7eb9fbe8af762172 (patch) | |
| tree | a6455ef1dd0088c193185752f31737009528b744 /modules | |
| parent | Add 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.py | 2 |
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) |
