def close(self):
template = template_env.get_template('main.html')
template.stream(
program_path=os.path.basename(self._program.path),
cobol_lines=self._cobol_lines,
items=self._items,
comment_format=self._lang.comment_format,
bottom_fold_button=not not self._lang.close_block,
version=get_distribution('cobolsharp').version,
# Needed for template logic
isinstance=isinstance,
Line=Line,
StartBlock=StartBlock,
EndBlock=EndBlock,
).dump(self._file)
self._cobol_lines = None
self._items = None
评论列表
文章目录