We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
test


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `utils.py`
Content:
```
1 # encoding=utf8
2 import codecs
3 import filecmp
4 import re
5 import sys
6 import argparse
7 
8 # reload(sys)
9 # sys.setdefaultencoding('utf8')
10 
11 BEGIN_BLOCK_COMMENT = '<!--\n'
12 END_BLOCK_COMMENT = '-->\n\n'
13 TRANSLATE_INDICATOR = '*dịch đoạn phía trên*'
14 HEADER_INDICATOR = ' *dịch tiêu đề phía trên*\n'
15 IMAGE_CAPTION_INDICATOR = '*dịch chú thích ảnh phía trên*'
16 START_FILE = '<!-- ===================== Bắt đầu dịch Phần 1 ==================== -->\n'
17 END_FILE = '<!-- ===================== Kết thúc dịch Phần 1 ==================== -->\n'
18 SUFIX_PATH = 'contributors_template_vn.md'
19 
20 # Our special mark in markdown, e.g. :label:`chapter_intro`
21 MARK_RE_MD = re.compile(':([-\/\\._\w\d]+):`([\*-\/\\\._\w\d]+)`')
22 
23 parser = argparse.ArgumentParser(description='Dịch Dive into Deep Learning')
24 parser.add_argument('--convert', type=str, help='path to md file')
25 
26 
27 def is_blank_line(line):
28     return line.strip() == ''
29 
30 
31 class MyLine(object):
32     def __init__(self, line_str, in_code_block):
33         self.line_str = line_str.replace(' -- ', ' \-\- ')
34         self.in_code_block = in_code_block
35         self.end_comment_if_next_line_blank = None
36 
37     def process(self, file_writer, last_line):
38         if self.in_code_block:
39             file_writer.write(self.line_str)
40         else:
41             self._process(file_writer, last_line)
42         return self
43 
44     def _process(self, file_writer, last_line):
45         raise NotImplementedError
46 
47 
48 class NormalLine(MyLine):
49     def __init__(self, line_str, in_code_block):
50         super(NormalLine, self).__init__(line_str, in_code_block)
51         self.end_comment_if_next_line_blank = True
52 
53     def _process(self, file_writer, last_line):
54         if isinstance(last_line, BlankLine):
55             file_writer.write(BEGIN_BLOCK_COMMENT)
56         file_writer.write(self.line_str)
57 
58 
59 class BlankLine(MyLine):
60     def __init__(self, line_str, in_code_block):
61         super(BlankLine, self).__init__(line_str, in_code_block)
62         self.end_comment_if_next_line_blank = False
63 
64     def _process(self, file_writer, last_line):
65         if last_line.end_comment_if_next_line_blank:
66             file_writer.write(END_BLOCK_COMMENT)
67             file_writer.write(TRANSLATE_INDICATOR)
68             file_writer.write('\n')
69         file_writer.write('\n')
70 
71 
72 class HeaderLine(MyLine):
73     def __init__(self, line_str, in_code_block):
74         super(HeaderLine, self).__init__(line_str, in_code_block)
75         self.end_comment_if_next_line_blank = False
76         self.heading = 0
77         cnt = 0
78         for char in self.line_str:
79             if char == '#':
80                 cnt += 1
81             elif char == ' ':
82                 self.heading = cnt
83                 break
84             else:
85                 assert False, self.line_str
86 
87     def _process(self, file_writer, last_line):
88         assert isinstance(last_line, BlankLine),\
89             last_line.line_str
90         file_writer.write(BEGIN_BLOCK_COMMENT)
91         file_writer.write(self.line_str)
92         file_writer.write(END_BLOCK_COMMENT)
93         file_writer.write('#'*self.heading + HEADER_INDICATOR)
94 
95 
96 class ImageLine(MyLine):
97     def __init(self, line_str, in_code_block):
98         assert not in_code_block
99         super(ImageLine, self).__init__(line_str, in_code_block)
100 
101     def _process(self, file_writer, last_line):
102         close_square_bracket_id = self.line_str.index(']')
103         assert self.line_str[close_square_bracket_id+1] == '(', self.line_str
104         # assert self.line_str.endswith(')'), self.line_str
105         file_writer.write(BEGIN_BLOCK_COMMENT)
106         file_writer.write(self.line_str)
107         file_writer.write(END_BLOCK_COMMENT)
108         file_writer.write(
109             '![' + IMAGE_CAPTION_INDICATOR + ']' + self.line_str[close_square_bracket_id+1:]
110         )
111 
112 
113 class CodeMarkerLine(MyLine):
114     def __init__(self, line_str, in_code_block):
115         super(CodeMarkerLine, self).__init__(line_str, in_code_block)
116         self.end_comment_if_next_line_blank = False
117 
118     def _process(self, file_writer, last_line):
119         """ the print is printed in the super class"""
120         file_writer.write(self.line_str)
121 
122 
123 
124 class MathLine(MyLine):
125     def __init__(self, line_str, in_code_block):
126         super(MathLine, self).__init__(line_str, in_code_block)
127         self.end_comment_if_next_line_blank = False
128 
129     def _process(self, file_writer, last_line):
130         file_writer.write(self.line_str)
131         return self
132 
133 
134 class LabelLine(MyLine):
135     def __init__(self, line_str, in_code_block):
136         super(LabelLine, self).__init__(line_str, in_code_block)
137         self.end_comment_if_next_line_blank = False
138 
139     def _process(self, file_writer, last_line):
140         # assert isinstance(last_line, HeaderLine) or isinstance(last_line, ImageLine), 'last line: {}\nthis_line: {}'.format(
141         #         last_line.line_str, self.line_str
142         #     )
143         file_writer.write(self.line_str)
144         # file_writer.write('\n')
145         return self
146 
147 
148 def block_comment(input_md, output_md, add_prefix_suffix=False):
149     last_line = BlankLine('', False)
150     in_code_block = False
151     with codecs.open(input_md, 'r', encoding='utf-8') as input_handle,\
152             codecs.open(output_md, 'w', encoding='utf-8') as output_handle,\
153             codecs.open(SUFIX_PATH, 'r', encoding='utf-8') as surfix_handle:
154         if add_prefix_suffix:
155             output_handle.write(START_FILE)
156             output_handle.write('\n')
157         for line_str in input_handle:
158             line_str = line_str.rstrip() + '\n'
159             line_str = line_str.replace(' -- ', ' \-\- ')
160             match = MARK_RE_MD.match(line_str)
161             if is_blank_line(line_str):
162                 line_type = BlankLine
163             elif line_str.startswith('#'):
164                 line_type = HeaderLine
165             elif line_str.startswith('!['):
166                 line_type = ImageLine
167             elif line_str.startswith('$'):
168                 line_type = MathLine
169             elif line_str.startswith('```'):
170                 in_code_block = not in_code_block
171                 line_type = CodeMarkerLine
172             elif match is not None and match[1] in ['label', 'eqlabel']:
173                 line_type = LabelLine
174             else:
175                 line_type = NormalLine
176 
177             this_line = line_type(line_str, in_code_block)
178             last_line = this_line.process(output_handle, last_line)
179 
180         assert in_code_block is False
181 
182         # TODO: simplify 5 lines below
183         if isinstance(last_line, BlankLine) or isinstance(last_line, LabelLine)\
184                 or isinstance(last_line, CodeMarkerLine) or isinstance(last_line, ImageLine):
185             print('skip')
186         else:
187             output_handle.write(END_BLOCK_COMMENT)
188             output_handle.write(TRANSLATE_INDICATOR)
189         if add_prefix_suffix:
190             output_handle.write('\n')
191             output_handle.write(END_FILE)
192             output_handle.write('\n')
193             for line in surfix_handle:
194                 output_handle.write(line)
195 
196 
197 if __name__ == '__main__':
198     args = parser.parse_args()
199     input_md = args.convert
200     output_md = input_md[:-len('.md')] + '_vn.md'
201     block_comment(input_md, output_md, add_prefix_suffix=True)
202
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/utils.py b/utils.py
--- a/utils.py
+++ b/utils.py
@@ -5,9 +5,6 @@
 import sys
 import argparse
 
-# reload(sys)
-# sys.setdefaultencoding('utf8')
-
 BEGIN_BLOCK_COMMENT = '<!--\n'
 END_BLOCK_COMMENT = '-->\n\n'
 TRANSLATE_INDICATOR = '*dịch đoạn phía trên*'

{"golden_diff": "diff --git a/utils.py b/utils.py\n--- a/utils.py\n+++ b/utils.py\n@@ -5,9 +5,6 @@\n import sys\n import argparse\n \n-# reload(sys)\n-# sys.setdefaultencoding('utf8')\n-\n BEGIN_BLOCK_COMMENT = '<!--\\n'\n END_BLOCK_COMMENT = '-->\\n\\n'\n TRANSLATE_INDICATOR = '*d\u1ecbch \u0111o\u1ea1n ph\u00eda tr\u00ean*'\n", "issue": "test\n\n", "before_files": [{"content": "# encoding=utf8\nimport codecs\nimport filecmp\nimport re\nimport sys\nimport argparse\n\n# reload(sys)\n# sys.setdefaultencoding('utf8')\n\nBEGIN_BLOCK_COMMENT = '<!--\\n'\nEND_BLOCK_COMMENT = '-->\\n\\n'\nTRANSLATE_INDICATOR = '*d\u1ecbch \u0111o\u1ea1n ph\u00eda tr\u00ean*'\nHEADER_INDICATOR = ' *d\u1ecbch ti\u00eau \u0111\u1ec1 ph\u00eda tr\u00ean*\\n'\nIMAGE_CAPTION_INDICATOR = '*d\u1ecbch ch\u00fa th\u00edch \u1ea3nh ph\u00eda tr\u00ean*'\nSTART_FILE = '<!-- ===================== B\u1eaft \u0111\u1ea7u d\u1ecbch Ph\u1ea7n 1 ==================== -->\\n'\nEND_FILE = '<!-- ===================== K\u1ebft th\u00fac d\u1ecbch Ph\u1ea7n 1 ==================== -->\\n'\nSUFIX_PATH = 'contributors_template_vn.md'\n\n# Our special mark in markdown, e.g. :label:`chapter_intro`\nMARK_RE_MD = re.compile(':([-\\/\\\\._\\w\\d]+):`([\\*-\\/\\\\\\._\\w\\d]+)`')\n\nparser = argparse.ArgumentParser(description='D\u1ecbch Dive into Deep Learning')\nparser.add_argument('--convert', type=str, help='path to md file')\n\n\ndef is_blank_line(line):\n    return line.strip() == ''\n\n\nclass MyLine(object):\n    def __init__(self, line_str, in_code_block):\n        self.line_str = line_str.replace(' -- ', ' \\-\\- ')\n        self.in_code_block = in_code_block\n        self.end_comment_if_next_line_blank = None\n\n    def process(self, file_writer, last_line):\n        if self.in_code_block:\n            file_writer.write(self.line_str)\n        else:\n            self._process(file_writer, last_line)\n        return self\n\n    def _process(self, file_writer, last_line):\n        raise NotImplementedError\n\n\nclass NormalLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(NormalLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = True\n\n    def _process(self, file_writer, last_line):\n        if isinstance(last_line, BlankLine):\n            file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n\n\nclass BlankLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(BlankLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        if last_line.end_comment_if_next_line_blank:\n            file_writer.write(END_BLOCK_COMMENT)\n            file_writer.write(TRANSLATE_INDICATOR)\n            file_writer.write('\\n')\n        file_writer.write('\\n')\n\n\nclass HeaderLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(HeaderLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n        self.heading = 0\n        cnt = 0\n        for char in self.line_str:\n            if char == '#':\n                cnt += 1\n            elif char == ' ':\n                self.heading = cnt\n                break\n            else:\n                assert False, self.line_str\n\n    def _process(self, file_writer, last_line):\n        assert isinstance(last_line, BlankLine),\\\n            last_line.line_str\n        file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n        file_writer.write(END_BLOCK_COMMENT)\n        file_writer.write('#'*self.heading + HEADER_INDICATOR)\n\n\nclass ImageLine(MyLine):\n    def __init(self, line_str, in_code_block):\n        assert not in_code_block\n        super(ImageLine, self).__init__(line_str, in_code_block)\n\n    def _process(self, file_writer, last_line):\n        close_square_bracket_id = self.line_str.index(']')\n        assert self.line_str[close_square_bracket_id+1] == '(', self.line_str\n        # assert self.line_str.endswith(')'), self.line_str\n        file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n        file_writer.write(END_BLOCK_COMMENT)\n        file_writer.write(\n            '![' + IMAGE_CAPTION_INDICATOR + ']' + self.line_str[close_square_bracket_id+1:]\n        )\n\n\nclass CodeMarkerLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(CodeMarkerLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        \"\"\" the print is printed in the super class\"\"\"\n        file_writer.write(self.line_str)\n\n\n\nclass MathLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(MathLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        file_writer.write(self.line_str)\n        return self\n\n\nclass LabelLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(LabelLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        # assert isinstance(last_line, HeaderLine) or isinstance(last_line, ImageLine), 'last line: {}\\nthis_line: {}'.format(\n        #         last_line.line_str, self.line_str\n        #     )\n        file_writer.write(self.line_str)\n        # file_writer.write('\\n')\n        return self\n\n\ndef block_comment(input_md, output_md, add_prefix_suffix=False):\n    last_line = BlankLine('', False)\n    in_code_block = False\n    with codecs.open(input_md, 'r', encoding='utf-8') as input_handle,\\\n            codecs.open(output_md, 'w', encoding='utf-8') as output_handle,\\\n            codecs.open(SUFIX_PATH, 'r', encoding='utf-8') as surfix_handle:\n        if add_prefix_suffix:\n            output_handle.write(START_FILE)\n            output_handle.write('\\n')\n        for line_str in input_handle:\n            line_str = line_str.rstrip() + '\\n'\n            line_str = line_str.replace(' -- ', ' \\-\\- ')\n            match = MARK_RE_MD.match(line_str)\n            if is_blank_line(line_str):\n                line_type = BlankLine\n            elif line_str.startswith('#'):\n                line_type = HeaderLine\n            elif line_str.startswith('!['):\n                line_type = ImageLine\n            elif line_str.startswith('$'):\n                line_type = MathLine\n            elif line_str.startswith('```'):\n                in_code_block = not in_code_block\n                line_type = CodeMarkerLine\n            elif match is not None and match[1] in ['label', 'eqlabel']:\n                line_type = LabelLine\n            else:\n                line_type = NormalLine\n\n            this_line = line_type(line_str, in_code_block)\n            last_line = this_line.process(output_handle, last_line)\n\n        assert in_code_block is False\n\n        # TODO: simplify 5 lines below\n        if isinstance(last_line, BlankLine) or isinstance(last_line, LabelLine)\\\n                or isinstance(last_line, CodeMarkerLine) or isinstance(last_line, ImageLine):\n            print('skip')\n        else:\n            output_handle.write(END_BLOCK_COMMENT)\n            output_handle.write(TRANSLATE_INDICATOR)\n        if add_prefix_suffix:\n            output_handle.write('\\n')\n            output_handle.write(END_FILE)\n            output_handle.write('\\n')\n            for line in surfix_handle:\n                output_handle.write(line)\n\n\nif __name__ == '__main__':\n    args = parser.parse_args()\n    input_md = args.convert\n    output_md = input_md[:-len('.md')] + '_vn.md'\n    block_comment(input_md, output_md, add_prefix_suffix=True)\n", "path": "utils.py"}], "after_files": [{"content": "# encoding=utf8\nimport codecs\nimport filecmp\nimport re\nimport sys\nimport argparse\n\nBEGIN_BLOCK_COMMENT = '<!--\\n'\nEND_BLOCK_COMMENT = '-->\\n\\n'\nTRANSLATE_INDICATOR = '*d\u1ecbch \u0111o\u1ea1n ph\u00eda tr\u00ean*'\nHEADER_INDICATOR = ' *d\u1ecbch ti\u00eau \u0111\u1ec1 ph\u00eda tr\u00ean*\\n'\nIMAGE_CAPTION_INDICATOR = '*d\u1ecbch ch\u00fa th\u00edch \u1ea3nh ph\u00eda tr\u00ean*'\nSTART_FILE = '<!-- ===================== B\u1eaft \u0111\u1ea7u d\u1ecbch Ph\u1ea7n 1 ==================== -->\\n'\nEND_FILE = '<!-- ===================== K\u1ebft th\u00fac d\u1ecbch Ph\u1ea7n 1 ==================== -->\\n'\nSUFIX_PATH = 'contributors_template_vn.md'\n\n# Our special mark in markdown, e.g. :label:`chapter_intro`\nMARK_RE_MD = re.compile(':([-\\/\\\\._\\w\\d]+):`([\\*-\\/\\\\\\._\\w\\d]+)`')\n\nparser = argparse.ArgumentParser(description='D\u1ecbch Dive into Deep Learning')\nparser.add_argument('--convert', type=str, help='path to md file')\n\n\ndef is_blank_line(line):\n    return line.strip() == ''\n\n\nclass MyLine(object):\n    def __init__(self, line_str, in_code_block):\n        self.line_str = line_str.replace(' -- ', ' \\-\\- ')\n        self.in_code_block = in_code_block\n        self.end_comment_if_next_line_blank = None\n\n    def process(self, file_writer, last_line):\n        if self.in_code_block:\n            file_writer.write(self.line_str)\n        else:\n            self._process(file_writer, last_line)\n        return self\n\n    def _process(self, file_writer, last_line):\n        raise NotImplementedError\n\n\nclass NormalLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(NormalLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = True\n\n    def _process(self, file_writer, last_line):\n        if isinstance(last_line, BlankLine):\n            file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n\n\nclass BlankLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(BlankLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        if last_line.end_comment_if_next_line_blank:\n            file_writer.write(END_BLOCK_COMMENT)\n            file_writer.write(TRANSLATE_INDICATOR)\n            file_writer.write('\\n')\n        file_writer.write('\\n')\n\n\nclass HeaderLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(HeaderLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n        self.heading = 0\n        cnt = 0\n        for char in self.line_str:\n            if char == '#':\n                cnt += 1\n            elif char == ' ':\n                self.heading = cnt\n                break\n            else:\n                assert False, self.line_str\n\n    def _process(self, file_writer, last_line):\n        assert isinstance(last_line, BlankLine),\\\n            last_line.line_str\n        file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n        file_writer.write(END_BLOCK_COMMENT)\n        file_writer.write('#'*self.heading + HEADER_INDICATOR)\n\n\nclass ImageLine(MyLine):\n    def __init(self, line_str, in_code_block):\n        assert not in_code_block\n        super(ImageLine, self).__init__(line_str, in_code_block)\n\n    def _process(self, file_writer, last_line):\n        close_square_bracket_id = self.line_str.index(']')\n        assert self.line_str[close_square_bracket_id+1] == '(', self.line_str\n        # assert self.line_str.endswith(')'), self.line_str\n        file_writer.write(BEGIN_BLOCK_COMMENT)\n        file_writer.write(self.line_str)\n        file_writer.write(END_BLOCK_COMMENT)\n        file_writer.write(\n            '![' + IMAGE_CAPTION_INDICATOR + ']' + self.line_str[close_square_bracket_id+1:]\n        )\n\n\nclass CodeMarkerLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(CodeMarkerLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        \"\"\" the print is printed in the super class\"\"\"\n        file_writer.write(self.line_str)\n\n\n\nclass MathLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(MathLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        file_writer.write(self.line_str)\n        return self\n\n\nclass LabelLine(MyLine):\n    def __init__(self, line_str, in_code_block):\n        super(LabelLine, self).__init__(line_str, in_code_block)\n        self.end_comment_if_next_line_blank = False\n\n    def _process(self, file_writer, last_line):\n        # assert isinstance(last_line, HeaderLine) or isinstance(last_line, ImageLine), 'last line: {}\\nthis_line: {}'.format(\n        #         last_line.line_str, self.line_str\n        #     )\n        file_writer.write(self.line_str)\n        # file_writer.write('\\n')\n        return self\n\n\ndef block_comment(input_md, output_md, add_prefix_suffix=False):\n    last_line = BlankLine('', False)\n    in_code_block = False\n    with codecs.open(input_md, 'r', encoding='utf-8') as input_handle,\\\n            codecs.open(output_md, 'w', encoding='utf-8') as output_handle,\\\n            codecs.open(SUFIX_PATH, 'r', encoding='utf-8') as surfix_handle:\n        if add_prefix_suffix:\n            output_handle.write(START_FILE)\n            output_handle.write('\\n')\n        for line_str in input_handle:\n            line_str = line_str.rstrip() + '\\n'\n            line_str = line_str.replace(' -- ', ' \\-\\- ')\n            match = MARK_RE_MD.match(line_str)\n            if is_blank_line(line_str):\n                line_type = BlankLine\n            elif line_str.startswith('#'):\n                line_type = HeaderLine\n            elif line_str.startswith('!['):\n                line_type = ImageLine\n            elif line_str.startswith('$'):\n                line_type = MathLine\n            elif line_str.startswith('```'):\n                in_code_block = not in_code_block\n                line_type = CodeMarkerLine\n            elif match is not None and match[1] in ['label', 'eqlabel']:\n                line_type = LabelLine\n            else:\n                line_type = NormalLine\n\n            this_line = line_type(line_str, in_code_block)\n            last_line = this_line.process(output_handle, last_line)\n\n        assert in_code_block is False\n\n        # TODO: simplify 5 lines below\n        if isinstance(last_line, BlankLine) or isinstance(last_line, LabelLine)\\\n                or isinstance(last_line, CodeMarkerLine) or isinstance(last_line, ImageLine):\n            print('skip')\n        else:\n            output_handle.write(END_BLOCK_COMMENT)\n            output_handle.write(TRANSLATE_INDICATOR)\n        if add_prefix_suffix:\n            output_handle.write('\\n')\n            output_handle.write(END_FILE)\n            output_handle.write('\\n')\n            for line in surfix_handle:\n                output_handle.write(line)\n\n\nif __name__ == '__main__':\n    args = parser.parse_args()\n    input_md = args.convert\n    output_md = input_md[:-len('.md')] + '_vn.md'\n    block_comment(input_md, output_md, add_prefix_suffix=True)\n", "path": "utils.py"}]}