Skip to content

Commit 9060d92

Browse files
committed
Fix reference to Python 2
1 parent 32c8e74 commit 9060d92

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ipython_pygments_lexers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
JavascriptLexer,
4343
RubyLexer,
4444
PerlLexer,
45-
PythonLexer,
45+
Python2Lexer,
4646
Python3Lexer,
4747
TexLexer,
4848
)
@@ -64,7 +64,6 @@
6464
Text,
6565
Error,
6666
)
67-
from pygments.util import get_bool_opt
6867

6968

7069
line_re = re.compile(".*?\n")
@@ -122,7 +121,7 @@
122121
),
123122
(
124123
r"(?s)(\s*)(%%python2)([^\n]*\n)(.*)",
125-
bygroups(Text, Operator, Text, using(PythonLexer)),
124+
bygroups(Text, Operator, Text, using(Python2Lexer)),
126125
),
127126
(
128127
r"(?s)(\s*)(%%python3)([^\n]*\n)(.*)",

0 commit comments

Comments
 (0)