From 6baad93938456bcdba9f9a2083e42d774c298161 Mon Sep 17 00:00:00 2001 From: "Dmitry D. Chernov" Date: Wed, 10 May 2017 02:41:00 +1000 Subject: [PATCH] SourceBuilder: Don't perform stream flushing twice stream.close() always perform flush by itself --- telethon_generator/parser/source_builder.py | 1 - 1 file changed, 1 deletion(-) diff --git a/telethon_generator/parser/source_builder.py b/telethon_generator/parser/source_builder.py index 10ee028b..cf8466d0 100755 --- a/telethon_generator/parser/source_builder.py +++ b/telethon_generator/parser/source_builder.py @@ -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()