add __repr__ method to TLObject

This commit is contained in:
Ader 2018-04-10 23:29:24 +01:00 committed by GitHub
parent bd1b0ecdb4
commit 3d0e184713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,9 @@ class TLObject:
def __str__(self):
return TLObject.pretty_format(self)
def __repr__(self):
return TLObject.pretty_format(self, indent=1)
def stringify(self):
return TLObject.pretty_format(self, indent=0)