Skip to content

Commit

Permalink
reintroduced django.utils.importlib for Python 2.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
berislavlopac committed Apr 1, 2015
1 parent bee5e66 commit fc1b374
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jstemplate/loading.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from __future__ import unicode_literals

import six
from importlib import import_module
try:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module
from django.core.exceptions import ImproperlyConfigured

from .conf import conf
Expand Down

0 comments on commit fc1b374

Please sign in to comment.