From c4d703ac3dc6f7d4962d26d252d1ac2afbec0015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Jun 2019 12:24:08 +0200 Subject: _compat: Make the encoding argument explicit in to_unicode_str(). --- python/olm/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.2.3