Skip to content

Commit

Permalink
Merge pull request #589 from Carreau/no-2-lex
Browse files Browse the repository at this point in the history
Remove Support for Python 2 Lexing
  • Loading branch information
ccordoba12 authored Aug 24, 2024
2 parents 39cd91b + 5beff84 commit 7d5b907
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qtconsole/jupyter_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from qtpy import QtCore, QtGui

from IPython.lib.lexers import IPythonLexer, IPython3Lexer
from IPython.lib.lexers import IPython3Lexer
from pygments.lexers import get_lexer_by_name
from pygments.util import ClassNotFound
from qtconsole import __version__
Expand Down Expand Up @@ -303,8 +303,6 @@ def _handle_kernel_info_reply(self, rep):
# added here by hand.
if pygments_lexer == 'ipython3':
lexer = IPython3Lexer()
elif pygments_lexer == 'ipython2':
lexer = IPythonLexer()
else:
lexer = get_lexer_by_name(self.language_name)
self._highlighter._lexer = lexer
Expand Down

0 comments on commit 7d5b907

Please sign in to comment.