mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
remove importlib dependency
importlib is only available for python >= 2.7
This commit is contained in:
parent
5fd6eac477
commit
1c44f49d1b
1 changed files with 1 additions and 2 deletions
|
|
@ -4,7 +4,6 @@ __all__ = [
|
|||
]
|
||||
|
||||
import cStringIO
|
||||
import importlib
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
|
@ -145,7 +144,7 @@ def module_exists(module_name):
|
|||
"""Test if a module is importable."""
|
||||
|
||||
try:
|
||||
importlib.import_module(module_name)
|
||||
__import__(module_name)
|
||||
except ImportError:
|
||||
return False
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue