mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
SourceBuilder: Don't perform stream flushing twice
stream.close() always perform flush by itself
This commit is contained in:

committed by
Lonami

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()
|
||||
|
Reference in New Issue
Block a user