mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-26 06:56:38 +00: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
|
return self
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||||
self.out_stream.flush()
|
|
||||||
self.out_stream.close()
|
self.out_stream.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user