mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04:33 +03: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('}')
|
||||
|
||||
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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user