Clean up imports, codestyle

This commit is contained in:
Juda Kaleta 2014-05-07 22:53:46 +02:00
parent db11b8c866
commit 2b7308e8ea
6 changed files with 7 additions and 8 deletions

View file

@ -1,5 +1,4 @@
import re
from django.utils.datastructures import SortedDict
import requests
import json
@ -16,6 +15,7 @@ from django.conf import settings
from django.template.loader import render_to_string
from django.utils.functional import cached_property
from django.utils.safestring import mark_safe
from django.utils.datastructures import SortedDict
from .utils import import_by_path
from .settings import EMBED_VIDEO_BACKENDS, EMBED_VIDEO_TIMEOUT

View file

@ -1,11 +1,12 @@
from django.template import Library, Node, TemplateSyntaxError, Variable
from django.utils.safestring import mark_safe
from django.utils.encoding import smart_str
import re
import logging
import requests
from collections import defaultdict
from django.template import Library, Node, TemplateSyntaxError, Variable
from django.utils.safestring import mark_safe
from django.utils.encoding import smart_str
from ..backends import detect_backend, VideoBackend, \
VideoDoesntExistException, UnknownBackendException

View file

@ -1,7 +1,5 @@
from unittest import TestCase
from django.forms import TextInput
from embed_video.admin import AdminVideoWidget, AdminVideoMixin
from embed_video.backends import VimeoBackend
from embed_video.fields import EmbedVideoField, EmbedVideoFormField

View file

@ -2,6 +2,7 @@ from mock import patch
from unittest import TestCase
from django.forms import ValidationError
from ..fields import EmbedVideoField, EmbedVideoFormField
from ..backends import UnknownBackendException, UnknownIdException

View file

@ -1,5 +1,4 @@
from unittest import TestCase
from django.test.client import RequestFactory
from mock import Mock, patch
import re
@ -15,6 +14,7 @@ from django.http import HttpRequest
from django.template.base import Template
from django.template.context import RequestContext
from django.test.utils import override_settings
from django.test.client import RequestFactory
from testfixtures import LogCapture
from embed_video.templatetags.embed_video_tags import VideoNode

View file

@ -1,4 +1,3 @@
import sys
from unittest import TestCase
from django.core.exceptions import ImproperlyConfigured