mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
SourceBuilder: Don't perform stream flushing twice
stream.close() always perform flush by itself
This commit is contained in:
parent
5d66b4d554
commit
6baad93938
|
@ -53,5 +53,4 @@ class SourceBuilder:
|
|||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.out_stream.flush()
|
||||
self.out_stream.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user