Update json imports

This commit is contained in:
Ryan P Kilby 2017-07-07 12:47:08 -04:00 committed by Carlton Gibson
parent b64f8066c0
commit d740bae95a
6 changed files with 6 additions and 8 deletions

View File

@ -5,7 +5,6 @@ import copy
import datetime import datetime
import decimal import decimal
import inspect import inspect
import json
import re import re
import uuid import uuid
from collections import OrderedDict from collections import OrderedDict
@ -37,7 +36,7 @@ from rest_framework.compat import (
) )
from rest_framework.exceptions import ErrorDetail, ValidationError from rest_framework.exceptions import ErrorDetail, ValidationError
from rest_framework.settings import api_settings from rest_framework.settings import api_settings
from rest_framework.utils import html, humanize_datetime, representation from rest_framework.utils import html, humanize_datetime, json, representation
class empty: class empty:

View File

@ -7,7 +7,6 @@ on the request, such as form content or json encoded data.
from __future__ import unicode_literals from __future__ import unicode_literals
import codecs import codecs
import json
from django.conf import settings from django.conf import settings
from django.core.files.uploadhandler import StopFutureHandlers from django.core.files.uploadhandler import StopFutureHandlers
@ -23,6 +22,7 @@ from django.utils.six.moves.urllib import parse as urlparse
from rest_framework import renderers from rest_framework import renderers
from rest_framework.exceptions import ParseError from rest_framework.exceptions import ParseError
from rest_framework.utils import json
class DataAndFiles(object): class DataAndFiles(object):

View File

@ -9,7 +9,6 @@ REST framework also provides an HTML renderer that renders the browsable API.
from __future__ import unicode_literals from __future__ import unicode_literals
import base64 import base64
import json
from collections import OrderedDict from collections import OrderedDict
from django import forms from django import forms
@ -30,7 +29,7 @@ from rest_framework.compat import (
from rest_framework.exceptions import ParseError from rest_framework.exceptions import ParseError
from rest_framework.request import is_form_media_type, override_method from rest_framework.request import is_form_media_type, override_method
from rest_framework.settings import api_settings from rest_framework.settings import api_settings
from rest_framework.utils import encoders from rest_framework.utils import encoders, json
from rest_framework.utils.breadcrumbs import get_breadcrumbs from rest_framework.utils.breadcrumbs import get_breadcrumbs
from rest_framework.utils.field_mapping import ClassLookupDict from rest_framework.utils.field_mapping import ClassLookupDict

View File

@ -1,12 +1,12 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import collections import collections
import json
from collections import OrderedDict from collections import OrderedDict
from django.utils.encoding import force_text from django.utils.encoding import force_text
from rest_framework.compat import unicode_to_repr from rest_framework.compat import unicode_to_repr
from rest_framework.utils import json
class ReturnDict(OrderedDict): class ReturnDict(OrderedDict):

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
import json
import re import re
from collections import MutableMapping, OrderedDict from collections import MutableMapping, OrderedDict
@ -24,6 +23,7 @@ from rest_framework.request import Request
from rest_framework.response import Response from rest_framework.response import Response
from rest_framework.settings import api_settings from rest_framework.settings import api_settings
from rest_framework.test import APIRequestFactory from rest_framework.test import APIRequestFactory
from rest_framework.utils import json
from rest_framework.views import APIView from rest_framework.views import APIView
DUMMYSTATUS = status.HTTP_200_OK DUMMYSTATUS = status.HTTP_200_OK

View File

@ -1,6 +1,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import json
from collections import namedtuple from collections import namedtuple
import pytest import pytest
@ -15,6 +14,7 @@ from rest_framework.decorators import detail_route, list_route
from rest_framework.response import Response from rest_framework.response import Response
from rest_framework.routers import DefaultRouter, SimpleRouter from rest_framework.routers import DefaultRouter, SimpleRouter
from rest_framework.test import APIRequestFactory from rest_framework.test import APIRequestFactory
from rest_framework.utils import json
factory = APIRequestFactory() factory = APIRequestFactory()