Skip to content
Snippets Groups Projects
Commit 02861082 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Get rid of shim warning with new ipython

parent a89482d1
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,10 @@ def main(sysarg):
try:
return_value = sphinx.cmdline.main(argv)
finally:
from IPython.qt.console import pygments_highlighter
try:
from qtconsole import pygments_highlighter
except ImportError:
from IPython.qt.console import pygments_highlighter # deprecated in ipython 4
RegexLexer.get_tokens_unprocessed = pygments_highlighter.get_tokens_unprocessed
sys.exit(return_value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment