Skip to content

Commit

Permalink
optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ierror committed May 5, 2019
1 parent dd88d9d commit 5b13f85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion django_js_reverse/tests/test_urlconf_urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.views.generic import View
from django.conf.urls import url
from django.views.generic import View

urlpatterns = [
url(r'^test_changed_urlconf/$', View.as_view(), name='test_changed_urlconf'),
Expand Down
3 changes: 2 additions & 1 deletion django_js_reverse/tests/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -*- coding: utf-8 -*-
from copy import copy

from django.conf.urls import include as django_include, url
from django.conf.urls import include as django_include
from django.conf.urls import url
from django.views.generic import View
from django_js_reverse.tests.helper import is_django_ver_gte_2
from django_js_reverse.views import urls_js
Expand Down
2 changes: 1 addition & 1 deletion django_js_reverse/tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import io
import json
import os
import re
import subprocess
import sys
import unittest
import io

import django
from django.conf import settings
Expand Down
6 changes: 3 additions & 3 deletions django_js_reverse/views.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# -*- coding: utf-8 -*-
import json

from django import http
from django_js_reverse import core

try:
from django.urls import get_resolver
except ImportError:
from django.core.urlresolvers import get_resolver

from django import http
from django_js_reverse import core


def _urls_js(fn, type):
def view(request):
Expand Down

0 comments on commit 5b13f85

Please sign in to comment.