diff options
author | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 12:24:08 +0200 |
---|---|---|
committer | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 12:24:08 +0200 |
commit | c4d703ac3dc6f7d4962d26d252d1ac2afbec0015 (patch) | |
tree | 4d930915fca57e4531298fe8eb67b8516ca82e76 /python/olm | |
parent | 7538a1eccf99106712a17cc85adacdf27c4a8e8a (diff) |
_compat: Make the encoding argument explicit in to_unicode_str().
Diffstat (limited to 'python/olm')
-rw-r--r-- | python/olm/_compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/olm/_compat.py b/python/olm/_compat.py index 29a80d4..2ceaa33 100644 --- a/python/olm/_compat.py +++ b/python/olm/_compat.py @@ -64,4 +64,4 @@ def to_unicode_str(byte_string, errors="replace"): Returns the decoded native string. """ - return byte_string.decode(errors=errors) + return byte_string.decode(encoding="utf-8", errors=errors) |