From 0993aee31d47c977801266a0c22f1c03d6ede084 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 20 Feb 2018 08:48:55 -0500 Subject: [PATCH] [2.0.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 9a50a1d9ab..033099923d 100644 --- a/django/core/management/commands/runserver.py +++ b/django/core/management/commands/runserver.py @@ -12,7 +12,6 @@ from django.core.servers.basehttp import ( ) from django.utils import autoreload - 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 dafd49fd05..3b20874148 100644 --- a/django/db/models/signals.py +++ b/django/db/models/signals.py @@ -3,7 +3,6 @@ from functools import partial from django.db.models.utils import make_model_tuple from django.dispatch import Signal - class_prepared = Signal(providing_args=["class"]) diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 7da300645c..3b09093205 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -58,7 +58,6 @@ from .models import ( UnorderedObject, Villain, Vodcast, Whatsit, Widget, 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 729de126bd..268f821527 100644 --- a/tests/db_functions/tests.py +++ b/tests/db_functions/tests.py @@ -14,7 +14,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.