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/pk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/olm/pk.py') diff --git a/python/olm/pk.py b/python/olm/pk.py index 18608b7..4352359 100644 --- a/python/olm/pk.py +++ b/python/olm/pk.py @@ -313,7 +313,7 @@ class PkDecryption(object): return obj - def decrypt(self, message, errors="replace"): + def decrypt(self, message, unicode_errors="replace"): # type (PkMessage, str) -> str """Decrypt a previously encrypted Pk message. @@ -361,7 +361,7 @@ class PkDecryption(object): # clear out copies of the plaintext lib.memset(plaintext_buffer, 0, max_plaintext_length) - return to_unicode_str(plaintext, errors=errors) + return to_unicode_str(plaintext, errors=unicode_errors) def _clear_pk_signing(pk_struct): -- cgit v1.2.3