Fix representing .stringify() for bytes with indent > 0

This commit is contained in:
Lonami Exo 2017-09-17 16:35:35 +02:00
parent 76b7420b63
commit 12c12fdfaf

View File

@ -61,10 +61,8 @@ class TLObject:
result.append('\t' * indent)
result.append('}')
elif isinstance(obj, str):
result.append('"')
result.append(obj)
result.append('"')
elif isinstance(obj, str) or isinstance(obj, bytes):
result.append(repr(obj))
elif hasattr(obj, '__iter__'):
result.append('[\n')