mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Don't ensure ascii when printing objects
This will break in case of non-utf8 terminals
This commit is contained in:
parent
6bd9ddc95e
commit
c611944d45
@ -37,7 +37,7 @@ class Object:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def __str__(self) -> str:
|
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:
|
def __bool__(self) -> bool:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user