From 7538a1eccf99106712a17cc85adacdf27c4a8e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Jun 2019 12:16:37 +0200 Subject: olm: Rename the errors function argument in the decryption functions. --- python/olm/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/olm/session.py') diff --git a/python/olm/session.py b/python/olm/session.py index f81b727..636eb3d 100644 --- a/python/olm/session.py +++ b/python/olm/session.py @@ -273,7 +273,7 @@ class Session(object): else: # pragma: no cover raise ValueError("Unknown message type") - def decrypt(self, message, errors="replace"): + def decrypt(self, message, unicode_errors="replace"): # type: (_OlmMessage, str) -> str """Decrypts a message using the session. Returns the plaintext string on success. Raises OlmSessionError on failure. If the base64 couldn't @@ -320,7 +320,7 @@ class Session(object): self._check_error(plaintext_length) plaintext = to_unicode_str( ffi.unpack(plaintext_buffer, plaintext_length), - errors=errors + errors=unicode_errors ) # clear out copies of the plaintext -- cgit v1.2.3