fix double initialization of the main section code sink

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-08-18 15:46:19 +01:00
1 parent 2b469ec4e1
commit ef7e4f5bf8
1 file changed
+1
+1
View File
@@ -134,6 +134,7 @@ class _MultiSectionSinkManager(_SinkManager):
self.multi_section_factory.get_main_code_sink().writeln(
"#include %s" % self.multi_section_factory.get_common_header_include())
self._already_initialized_sections = {}
self._already_initialized_sections['__main__'] = True
def get_code_sink_for_wrapper(self, wrapper):
header_sink = self.multi_section_factory.get_common_header_code_sink()