mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-19 11:36:41 +00:00
Fix representing .stringify() for bytes with indent > 0
This commit is contained in:
parent
76b7420b63
commit
12c12fdfaf
@ -61,10 +61,8 @@ class TLObject:
|
|||||||
result.append('\t' * indent)
|
result.append('\t' * indent)
|
||||||
result.append('}')
|
result.append('}')
|
||||||
|
|
||||||
elif isinstance(obj, str):
|
elif isinstance(obj, str) or isinstance(obj, bytes):
|
||||||
result.append('"')
|
result.append(repr(obj))
|
||||||
result.append(obj)
|
|
||||||
result.append('"')
|
|
||||||
|
|
||||||
elif hasattr(obj, '__iter__'):
|
elif hasattr(obj, '__iter__'):
|
||||||
result.append('[\n')
|
result.append('[\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user