Skip to content

Commit

Permalink
Clean up imports, codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
yetty committed May 7, 2014
1 parent db11b8c commit 2b7308e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion embed_video/backends.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
from django.utils.datastructures import SortedDict
import requests
import json

Expand All @@ -16,6 +15,7 @@
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
Expand Down
7 changes: 4 additions & 3 deletions embed_video/templatetags/embed_video_tags.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 0 additions & 2 deletions embed_video/tests/tests_admin.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions embed_video/tests/tests_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from unittest import TestCase

from django.forms import ValidationError

from ..fields import EmbedVideoField, EmbedVideoFormField
from ..backends import UnknownBackendException, UnknownIdException

Expand Down
2 changes: 1 addition & 1 deletion embed_video/tests/tests_tags.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from unittest import TestCase
from django.test.client import RequestFactory
from mock import Mock, patch
import re

Expand All @@ -15,6 +14,7 @@
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
Expand Down
1 change: 0 additions & 1 deletion embed_video/tests/tests_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
from unittest import TestCase

from django.core.exceptions import ImproperlyConfigured
Expand Down

0 comments on commit 2b7308e

Please sign in to comment.