From bc742ca110ca06b220261d37b985ecbfb7ebbaab Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 11 Nov 2013 14:05:14 -0800 Subject: [PATCH] Flake8 fixes -- including not runnign flake8 over a backported file --- django/utils/autoreload.py | 1 - setup.cfg | 2 +- tests/urlpatterns_reverse/tests.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 219ed6440c..1b15c32874 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -39,7 +39,6 @@ from django.conf import settings 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 diff --git a/setup.cfg b/setup.cfg index 73e8693dea..d45eff4c36 100644 --- a/setup.cfg +++ b/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] diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index b4056ac7fa..da0c5bee1a 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -566,14 +566,12 @@ class ErrorHandlerResolutionTests(TestCase): 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)