Skip to content

Commit 9063184

Browse files
committed
renamed languages_data into fmt.comments in ansi.py
1 parent 4fff68b commit 9063184

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/frontend/ansi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
# pylint: disable=wrong-import-position
2929
sys.path.append(os.path.abspath(os.path.join(__file__, '..')))
3030
from globals import COLOR_STYLES
31-
import languages_data
32-
import beautifier # pylint: enable=wrong-import-position
31+
import languages_data # pylint: enable=wrong-import-position
3332

3433
import fmt.internal
34+
import fmt.comments
3535

3636
def visualize(answer_data, request_options):
3737
"""
@@ -72,7 +72,7 @@ def _colorize_ansi_answer(topic, answer, color_style, # pylint: disable=to
7272
highlight = lambda x: x
7373

7474
if highlight_code:
75-
blocks = beautifier.code_blocks(
75+
blocks = fmt.comments.code_blocks(
7676
answer, wrap_lines=True, unindent_code=(4 if unindent_code else False))
7777
highlighted_blocks = []
7878
for block in blocks:

0 commit comments

Comments
 (0)