summaryrefslogtreecommitdiff
path: root/creole/shared/example_macros.py
diff options
context:
space:
mode:
Diffstat (limited to 'creole/shared/example_macros.py')
-rw-r--r--creole/shared/example_macros.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/creole/shared/example_macros.py b/creole/shared/example_macros.py
index 428d5d2..25deac7 100644
--- a/creole/shared/example_macros.py
+++ b/creole/shared/example_macros.py
@@ -15,13 +15,14 @@
from xml.sax.saxutils import escape
+from creole.shared.utils import get_pygments_formatter, get_pygments_lexer
+
try:
from pygments import highlight
PYGMENTS = True
except ImportError:
PYGMENTS = False
-from creole.shared.utils import get_pygments_lexer, get_pygments_formatter
def html(text):