Hide _client when printing pyrogram object

This commit is contained in:
Dan 2018-06-04 09:11:58 +02:00
parent 7e5dcb9f60
commit 36a1015ec9

View File

@ -78,7 +78,7 @@ class Encoder(JSONEncoder):
if o is not None: if o is not None:
if o.startswith("pyrogram.client"): if o.startswith("pyrogram.client"):
r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()])) r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()]))
r.pop("client", None) r.pop("_client", None)
return r return r
else: else: