aboutsummaryrefslogtreecommitdiff
path: root/python/olm/pk.py
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2019-06-20 12:16:37 +0200
committerDamir Jelić <poljar@termina.org.uk>2019-06-20 12:16:37 +0200
commit7538a1eccf99106712a17cc85adacdf27c4a8e8a (patch)
tree14a6d73021f750ad1810d03d25c881ca58433c41 /python/olm/pk.py
parentfec41f9540665345418b9aa1184cb1a5fc7ed0ce (diff)
olm: Rename the errors function argument in the decryption functions.
Diffstat (limited to 'python/olm/pk.py')
-rw-r--r--python/olm/pk.py4
1 files changed, 2 insertions, 2 deletions
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):