mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use the docutils variable to check if docutils is installed, not core.
+ remove duplicate import
This commit is contained in:
parent
a14dc4dad2
commit
a268d9e952
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import datetime
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import logging
|
|
||||||
try:
|
try:
|
||||||
import docutils
|
import docutils
|
||||||
import docutils.core
|
import docutils.core
|
||||||
|
|
@ -15,7 +15,7 @@ try:
|
||||||
# import the directives to have pygments support
|
# import the directives to have pygments support
|
||||||
from pelican import rstdirectives # NOQA
|
from pelican import rstdirectives # NOQA
|
||||||
except ImportError:
|
except ImportError:
|
||||||
core = False
|
docutils = False
|
||||||
try:
|
try:
|
||||||
from markdown import Markdown
|
from markdown import Markdown
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue