Commit d740bae9 by Ryan P Kilby Committed by Carlton Gibson

Update json imports

parent b64f8066
......@@ -5,7 +5,6 @@ import copy
import datetime
import decimal
import inspect
import json
import re
import uuid
from collections import OrderedDict
......@@ -37,7 +36,7 @@ from rest_framework.compat import (
)
from rest_framework.exceptions import ErrorDetail, ValidationError
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:
......
......@@ -7,7 +7,6 @@ on the request, such as form content or json encoded data.
from __future__ import unicode_literals
import codecs
import json
from django.conf import settings
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.exceptions import ParseError
from rest_framework.utils import json
class DataAndFiles(object):
......
......@@ -9,7 +9,6 @@ REST framework also provides an HTML renderer that renders the browsable API.
from __future__ import unicode_literals
import base64
import json
from collections import OrderedDict
from django import forms
......@@ -30,7 +29,7 @@ from rest_framework.compat import (
from rest_framework.exceptions import ParseError
from rest_framework.request import is_form_media_type, override_method
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.field_mapping import ClassLookupDict
......
from __future__ import unicode_literals
import collections
import json
from collections import OrderedDict
from django.utils.encoding import force_text
from rest_framework.compat import unicode_to_repr
from rest_framework.utils import json
class ReturnDict(OrderedDict):
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import re
from collections import MutableMapping, OrderedDict
......@@ -24,6 +23,7 @@ from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.settings import api_settings
from rest_framework.test import APIRequestFactory
from rest_framework.utils import json
from rest_framework.views import APIView
DUMMYSTATUS = status.HTTP_200_OK
......
from __future__ import unicode_literals
import json
from collections import namedtuple
import pytest
......@@ -15,6 +14,7 @@ from rest_framework.decorators import detail_route, list_route
from rest_framework.response import Response
from rest_framework.routers import DefaultRouter, SimpleRouter
from rest_framework.test import APIRequestFactory
from rest_framework.utils import json
factory = APIRequestFactory()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment