mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 20:06:35 +11:00
Fixed broken import.
This commit is contained in:
parent
42181feb89
commit
a9ea06345d
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,6 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
|
|
||||||
from IPython.core.oinspect import is_simple_callable
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.template.defaultfilters import escape, linebreaksbr
|
from django.template.defaultfilters import escape, linebreaksbr
|
||||||
from django.template.loader import render_to_string
|
from django.template.loader import render_to_string
|
||||||
|
@ -95,8 +94,8 @@ class SolidityHighlighter(PygmentsHighlighter):
|
||||||
"""Solidity Specific Highlighter. This uses a 3rd party Pygments lexer."""
|
"""Solidity Specific Highlighter. This uses a 3rd party Pygments lexer."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# SolidityLexer does not necessarily need to be required
|
# SolidityLexer does not necessarily need to be installed
|
||||||
# if its imported here and not used later.
|
# since its imported here and not used later.
|
||||||
from pygments_lexer_solidity import SolidityLexer
|
from pygments_lexer_solidity import SolidityLexer
|
||||||
self.lexer = SolidityLexer()
|
self.lexer = SolidityLexer()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue