Skip to content

Commit ca51eb0

Browse files
Fix pygments import
Closes #12.
1 parent 147c469 commit ca51eb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

snippets/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pygments.lexers import get_all_lexers
33
from pygments.styles import get_all_styles
44
from pygments.lexers import get_lexer_by_name
5-
from pygments.formatters import HtmlFormatter
5+
from pygments.formatters.html import HtmlFormatter
66
from pygments import highlight
77

88
LEXERS = [item for item in get_all_lexers() if item[1]]

0 commit comments

Comments
 (0)