summaryrefslogtreecommitdiff
path: root/creole/shared
diff options
context:
space:
mode:
Diffstat (limited to 'creole/shared')
-rw-r--r--creole/shared/example_macros.py1
-rw-r--r--creole/shared/utils.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/creole/shared/example_macros.py b/creole/shared/example_macros.py
index 354469d..88a9bc8 100644
--- a/creole/shared/example_macros.py
+++ b/creole/shared/example_macros.py
@@ -17,6 +17,7 @@ from xml.sax.saxutils import escape
from creole.shared.utils import get_pygments_formatter, get_pygments_lexer
+
try:
from pygments import highlight
PYGMENTS = True
diff --git a/creole/shared/utils.py b/creole/shared/utils.py
index 9ac82e2..1d0071f 100644
--- a/creole/shared/utils.py
+++ b/creole/shared/utils.py
@@ -13,6 +13,7 @@
import json
import shlex
+
try:
from pygments import lexers
from pygments.formatters import HtmlFormatter