Skip to content

Commit

Permalink
Fix reference to Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jan 15, 2025
1 parent 32c8e74 commit 9060d92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ipython_pygments_lexers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
JavascriptLexer,
RubyLexer,
PerlLexer,
PythonLexer,
Python2Lexer,
Python3Lexer,
TexLexer,
)
Expand All @@ -64,7 +64,6 @@
Text,
Error,
)
from pygments.util import get_bool_opt


line_re = re.compile(".*?\n")
Expand Down Expand Up @@ -122,7 +121,7 @@
),
(
r"(?s)(\s*)(%%python2)([^\n]*\n)(.*)",
bygroups(Text, Operator, Text, using(PythonLexer)),
bygroups(Text, Operator, Text, using(Python2Lexer)),
),
(
r"(?s)(\s*)(%%python3)([^\n]*\n)(.*)",
Expand Down

0 comments on commit 9060d92

Please sign in to comment.