mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Merge pull request #2565 from carltongibson/18-warning
Adjust importlib import
This commit is contained in:
commit
76fe710c0d
|
@ -20,7 +20,11 @@ back to the defaults.
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from django.test.signals import setting_changed
|
from django.test.signals import setting_changed
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils import importlib, six
|
try:
|
||||||
|
import importlib
|
||||||
|
except ImportError:
|
||||||
|
from django.utils import importlib
|
||||||
|
from django.utils import six
|
||||||
from rest_framework import ISO_8601
|
from rest_framework import ISO_8601
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user