From 9f72b0970db4be76d14bd7be5a21582d2cc484bc Mon Sep 17 00:00:00 2001 From: Seamus Quinn <33418558+seamus-quinn@users.noreply.github.com> Date: Wed, 18 Nov 2020 22:35:41 -0700 Subject: [PATCH] Fixed #32201 -- Removed obsolete isort:skip's. Obsolete as of isort 5. --- django/db/backends/mysql/base.py | 18 +++++++++--------- django/db/backends/oracle/base.py | 16 ++++++++-------- django/db/backends/postgresql/base.py | 12 ++++++------ django/db/backends/sqlite3/base.py | 12 ++++++------ 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index 47aa5e1965..f57ec283fc 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -19,17 +19,17 @@ except ImportError as err: 'Did you install mysqlclient?' ) from err -from MySQLdb.constants import CLIENT, FIELD_TYPE # isort:skip -from MySQLdb.converters import conversions # isort:skip +from MySQLdb.constants import CLIENT, FIELD_TYPE +from MySQLdb.converters import conversions # Some of these import MySQLdb, so import them after checking if it's installed. -from .client import DatabaseClient # isort:skip -from .creation import DatabaseCreation # isort:skip -from .features import DatabaseFeatures # isort:skip -from .introspection import DatabaseIntrospection # isort:skip -from .operations import DatabaseOperations # isort:skip -from .schema import DatabaseSchemaEditor # isort:skip -from .validation import DatabaseValidation # isort:skip +from .client import DatabaseClient +from .creation import DatabaseCreation +from .features import DatabaseFeatures +from .introspection import DatabaseIntrospection +from .operations import DatabaseOperations +from .schema import DatabaseSchemaEditor +from .validation import DatabaseValidation version = Database.version_info if version < (1, 4, 0): diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 781f123a82..d1650e7927 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -50,14 +50,14 @@ except ImportError as e: raise ImproperlyConfigured("Error loading cx_Oracle module: %s" % e) # Some of these import cx_Oracle, so import them after checking if it's installed. -from .client import DatabaseClient # NOQA isort:skip -from .creation import DatabaseCreation # NOQA isort:skip -from .features import DatabaseFeatures # NOQA isort:skip -from .introspection import DatabaseIntrospection # NOQA isort:skip -from .operations import DatabaseOperations # NOQA isort:skip -from .schema import DatabaseSchemaEditor # NOQA isort:skip -from .utils import dsn, Oracle_datetime # NOQA isort:skip -from .validation import DatabaseValidation # NOQA isort:skip +from .client import DatabaseClient # NOQA +from .creation import DatabaseCreation # NOQA +from .features import DatabaseFeatures # NOQA +from .introspection import DatabaseIntrospection # NOQA +from .operations import DatabaseOperations # NOQA +from .schema import DatabaseSchemaEditor # NOQA +from .utils import Oracle_datetime, dsn # NOQA +from .validation import DatabaseValidation # NOQA @contextmanager diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 03c7a3c284..c752b5dba4 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -41,12 +41,12 @@ if PSYCOPG2_VERSION < (2, 5, 4): # Some of these import psycopg2, so import them after checking if it's installed. -from .client import DatabaseClient # NOQA isort:skip -from .creation import DatabaseCreation # NOQA isort:skip -from .features import DatabaseFeatures # NOQA isort:skip -from .introspection import DatabaseIntrospection # NOQA isort:skip -from .operations import DatabaseOperations # NOQA isort:skip -from .schema import DatabaseSchemaEditor # NOQA isort:skip +from .client import DatabaseClient # NOQA +from .creation import DatabaseCreation # NOQA +from .features import DatabaseFeatures # NOQA +from .introspection import DatabaseIntrospection # NOQA +from .operations import DatabaseOperations # NOQA +from .schema import DatabaseSchemaEditor # NOQA psycopg2.extensions.register_adapter(SafeString, psycopg2.extensions.QuotedString) psycopg2.extras.register_uuid() diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 13b78edc52..2eeaf98c0d 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -27,12 +27,12 @@ from django.utils.duration import duration_microseconds from django.utils.regex_helper import _lazy_re_compile from django.utils.version import PY38 -from .client import DatabaseClient # isort:skip -from .creation import DatabaseCreation # isort:skip -from .features import DatabaseFeatures # isort:skip -from .introspection import DatabaseIntrospection # isort:skip -from .operations import DatabaseOperations # isort:skip -from .schema import DatabaseSchemaEditor # isort:skip +from .client import DatabaseClient +from .creation import DatabaseCreation +from .features import DatabaseFeatures +from .introspection import DatabaseIntrospection +from .operations import DatabaseOperations +from .schema import DatabaseSchemaEditor def decoder(conv_func):