SourceBuilder: Don't perform stream flushing twice

stream.close() always perform flush by itself
This commit is contained in:
Dmitry D. Chernov 2017-05-10 02:41:00 +10:00
parent a49e50d04d
commit 6ac364be3d

View File

@ -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()