Don't ensure ascii when printing objects

This will break in case of non-utf8 terminals
This commit is contained in:
Dan 2019-03-16 15:39:35 +01:00
parent 6bd9ddc95e
commit c611944d45

View File

@ -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