diff options
| author | 2019-02-06 22:36:25 +0000 | |
|---|---|---|
| committer | 2019-02-06 22:36:25 +0000 | |
| commit | c77d8aaac8933699f4ac3ae0e27e19199a10bb35 (patch) | |
| tree | a7ff5d8bf70dfcce8435f8fcd5c707259e5ddf80 /modules/sasl | |
| parent | Add type hints to SCRAM ctor (sasl.scram) (diff) | |
| signature | ||
Default `error` to `""`, `_client_first`/`_salted_password`/`_auth_message` to `b""`
(sasl.scram)
Diffstat (limited to 'modules/sasl')
| -rw-r--r-- | modules/sasl/scram.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sasl/scram.py b/modules/sasl/scram.py index ffe5a9f0..a8760182 100644 --- a/modules/sasl/scram.py +++ b/modules/sasl/scram.py @@ -36,11 +36,11 @@ class SCRAM(object): self._password = password.encode("utf8") self.state = SCRAMState.Uninitialised - self.error = None # typing.Optional[str] + self.error = "" - self._client_first = None # typing.Optional[bytes] - self._salted_password = None # typing.Optional[bytes] - self._auth_message = None # typing.Optional[bytes] + self._client_first = b"" + self._salted_password = b"" + self._auth_message = b"" def _get_pieces(self, data: bytes) -> typing.Dict[bytes, bytes]: pieces = (piece.split(b"=", 1) for piece in data.split(b",")) |
