From d5da552d92c2d5165a23bceb229dec023b8bb5c5 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 20 Feb 2018 08:58:29 -0500 Subject: [PATCH] [1.11.x] Removed blank lines per isort 4.3.0. --- django/contrib/messages/__init__.py | 1 - django/core/management/commands/runserver.py | 1 - django/db/models/signals.py | 1 - tests/admin_views/tests.py | 1 - tests/db_functions/tests.py | 1 - tests/messages_tests/urls.py | 1 - tests/template_tests/syntax_tests/test_multiline.py | 1 - 7 files changed, 7 deletions(-) diff --git a/django/contrib/messages/__init__.py b/django/contrib/messages/__init__.py index a0cb24b2d9..25da09f3bf 100644 --- a/django/contrib/messages/__init__.py +++ b/django/contrib/messages/__init__.py @@ -1,5 +1,4 @@ from django.contrib.messages.api import * # NOQA from django.contrib.messages.constants import * # NOQA - default_app_config = 'django.contrib.messages.apps.MessagesConfig' diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py index 0bfbd5b68e..43cb6c40fd 100644 --- a/django/core/management/commands/runserver.py +++ b/django/core/management/commands/runserver.py @@ -15,7 +15,6 @@ from django.core.servers.basehttp import ( from django.utils import autoreload, six from django.utils.encoding import force_text, get_system_encoding - naiveip_re = re.compile(r"""^(?: (?P (?P\d{1,3}(?:\.\d{1,3}){3}) | # IPv4 address diff --git a/django/db/models/signals.py b/django/db/models/signals.py index 5047f11743..064428b4a6 100644 --- a/django/db/models/signals.py +++ b/django/db/models/signals.py @@ -6,7 +6,6 @@ from django.dispatch import Signal from django.utils import six from django.utils.deprecation import RemovedInDjango20Warning - class_prepared = Signal(providing_args=["class"]) diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index efddc49de7..c588c1a027 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -66,7 +66,6 @@ from .models import ( Worker, WorkHour, ) - ERROR_MESSAGE = "Please enter the correct username and password \ for a staff account. Note that both fields may be case-sensitive." diff --git a/tests/db_functions/tests.py b/tests/db_functions/tests.py index 3041f29570..a014f97370 100644 --- a/tests/db_functions/tests.py +++ b/tests/db_functions/tests.py @@ -16,7 +16,6 @@ from django.utils import timezone from .models import Article, Author, DecimalModel, Fan - lorem_ipsum = """ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.""" diff --git a/tests/messages_tests/urls.py b/tests/messages_tests/urls.py index 4005ffac6b..d9a8a59b91 100644 --- a/tests/messages_tests/urls.py +++ b/tests/messages_tests/urls.py @@ -9,7 +9,6 @@ from django.urls import reverse from django.views.decorators.cache import never_cache from django.views.generic.edit import FormView - TEMPLATE = """{% if messages %}
    {% for message in messages %} diff --git a/tests/template_tests/syntax_tests/test_multiline.py b/tests/template_tests/syntax_tests/test_multiline.py index b2371f7fd1..a95e12986a 100644 --- a/tests/template_tests/syntax_tests/test_multiline.py +++ b/tests/template_tests/syntax_tests/test_multiline.py @@ -2,7 +2,6 @@ from django.test import SimpleTestCase from ..utils import setup - multiline_string = """ Hello, boys.