From 746c26145fb5e57561c3a78ffb157e04657f14c9 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Wed, 8 Feb 2017 11:51:19 +0000 Subject: [PATCH] Imports order --- rest_framework/templatetags/rest_framework.py | 2 +- tests/test_api_client.py | 2 +- tests/test_schemas.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index d02488eb3..21a23c005 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -1,5 +1,6 @@ from __future__ import absolute_import, unicode_literals +import markdown import re from django import template @@ -14,7 +15,6 @@ from rest_framework.renderers import HTMLFormRenderer from rest_framework.utils.urls import replace_query_param from markdown.extensions.fenced_code import FencedBlockPreprocessor -import markdown register = template.Library() diff --git a/tests/test_api_client.py b/tests/test_api_client.py index 94653cd99..89ca0e58e 100644 --- a/tests/test_api_client.py +++ b/tests/test_api_client.py @@ -1,13 +1,13 @@ from __future__ import unicode_literals import os -import coreschema import tempfile import unittest from django.conf.urls import url from django.http import HttpResponse from django.test import override_settings +import coreschema from rest_framework.compat import coreapi from rest_framework.parsers import FileUploadParser diff --git a/tests/test_schemas.py b/tests/test_schemas.py index a6878355b..0b1050288 100644 --- a/tests/test_schemas.py +++ b/tests/test_schemas.py @@ -1,11 +1,10 @@ import unittest -import coreschema - from django.conf.urls import include, url from django.core.exceptions import PermissionDenied from django.http import Http404 from django.test import TestCase, override_settings +import coreschema from rest_framework import filters, pagination, permissions, serializers from rest_framework.compat import coreapi