Skip to content

Commit c611944

Browse files
committed
Don't ensure ascii when printing objects
This will break in case of non-utf8 terminals
1 parent 6bd9ddc commit c611944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/api/core/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def write(self, *args) -> bytes:
3737
pass
3838

3939
def __str__(self) -> str:
40-
return dumps(self, indent=4, default=default)
40+
return dumps(self, indent=4, default=default, ensure_ascii=False)
4141

4242
def __bool__(self) -> bool:
4343
return True

0 commit comments

Comments
 (0)