Browse files

Flake8 fixes -- including not runnign flake8 over a backported file

  • Loading branch information...
1 parent 0be7f57 commit bc742ca110ca06b220261d37b985ecbfb7ebbaab @alex alex committed Nov 11, 2013
Showing with 1 addition and 4 deletions.
  1. +0 −1 django/utils/autoreload.py
  2. +1 −1 setup.cfg
  3. +0 −2 tests/urlpatterns_reverse/tests.py
View
1 django/utils/autoreload.py
@@ -39,7 +39,6 @@
from django.core.signals import request_finished
from django.utils._os import upath
from django.utils.importlib import import_module
-from django.utils.translation.trans_real import all_locale_paths
from django.utils import six
try:
from django.utils.six.moves import _thread as thread
View
2 setup.cfg
@@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst
install-script = scripts/rpm-install.sh
[flake8]
-exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*
+exclude=./django/utils/dictconfig.py,./django/contrib/comments/*,./django/utils/unittest.py,./django/utils/lru_cache.py,./tests/comment_tests/*,./django/test/_doctest.py,./django/utils/six.py,./django/conf/app_template/*
ignore=E124,E125,E127,E128,E501,W601
[metadata]
View
2 tests/urlpatterns_reverse/tests.py
@@ -566,14 +566,12 @@ def setUp(self):
self.callable_resolver = RegexURLResolver(r'^$', urlconf_callables)
def test_named_handlers(self):
- from .views import empty_view
handler = (empty_view, {})
self.assertEqual(self.resolver.resolve400(), handler)
self.assertEqual(self.resolver.resolve404(), handler)
self.assertEqual(self.resolver.resolve500(), handler)
def test_callable_handers(self):
- from .views import empty_view
handler = (empty_view, {})
self.assertEqual(self.callable_resolver.resolve400(), handler)
self.assertEqual(self.callable_resolver.resolve404(), handler)

0 comments on commit bc742ca

Please sign in to comment.