Don't use string concat when we're already using %s formatting (sasl.scram)

This commit is contained in:
jesopo 2019-02-06 23:04:26 +00:00
parent 65766a093a
commit 7dd1eca7ae

View file

@ -84,7 +84,7 @@ class SCRAM(object):
client_proof = base64.b64encode(client_proof_xor) client_proof = base64.b64encode(client_proof_xor)
# c=<b64encode("n,,")>,r=<nonce>,p=<proof> # 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: def server_final(self, data: bytes) -> bool:
pieces = self._get_pieces(data) pieces = self._get_pieces(data)