mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix representing .stringify() for bytes with indent > 0
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user