From c611944d458599fbc383b28778cad3bc46a08685 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 16 Mar 2019 15:39:35 +0100 Subject: [PATCH] Don't ensure ascii when printing objects This will break in case of non-utf8 terminals --- pyrogram/api/core/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/api/core/object.py b/pyrogram/api/core/object.py index 8f8015fb..d4715d3c 100644 --- a/pyrogram/api/core/object.py +++ b/pyrogram/api/core/object.py @@ -37,7 +37,7 @@ class Object: pass def __str__(self) -> str: - return dumps(self, indent=4, default=default) + return dumps(self, indent=4, default=default, ensure_ascii=False) def __bool__(self) -> bool: return True