From 944469939b9eb93fda0924f78faba5c0ffae2dff Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 27 Dec 2018 19:23:09 -0500 Subject: [PATCH] Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline. --- django/db/backends/postgresql_psycopg2/__init__.py | 9 --------- django/db/backends/postgresql_psycopg2/base.py | 1 - django/db/backends/postgresql_psycopg2/client.py | 1 - django/db/backends/postgresql_psycopg2/creation.py | 1 - django/db/backends/postgresql_psycopg2/features.py | 1 - django/db/backends/postgresql_psycopg2/introspection.py | 1 - django/db/backends/postgresql_psycopg2/operations.py | 1 - django/db/backends/postgresql_psycopg2/schema.py | 1 - django/db/backends/postgresql_psycopg2/utils.py | 1 - docs/releases/3.0.txt | 2 +- 10 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 django/db/backends/postgresql_psycopg2/__init__.py delete mode 100644 django/db/backends/postgresql_psycopg2/base.py delete mode 100644 django/db/backends/postgresql_psycopg2/client.py delete mode 100644 django/db/backends/postgresql_psycopg2/creation.py delete mode 100644 django/db/backends/postgresql_psycopg2/features.py delete mode 100644 django/db/backends/postgresql_psycopg2/introspection.py delete mode 100644 django/db/backends/postgresql_psycopg2/operations.py delete mode 100644 django/db/backends/postgresql_psycopg2/schema.py delete mode 100644 django/db/backends/postgresql_psycopg2/utils.py diff --git a/django/db/backends/postgresql_psycopg2/__init__.py b/django/db/backends/postgresql_psycopg2/__init__.py deleted file mode 100644 index db97c5bcc9d..00000000000 --- a/django/db/backends/postgresql_psycopg2/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -import warnings - -from django.utils.deprecation import RemovedInDjango30Warning - -warnings.warn( - "The django.db.backends.postgresql_psycopg2 module is deprecated in " - "favor of django.db.backends.postgresql.", - RemovedInDjango30Warning, stacklevel=2 -) diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py deleted file mode 100644 index 967768434e8..00000000000 --- a/django/db/backends/postgresql_psycopg2/base.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.base import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/client.py b/django/db/backends/postgresql_psycopg2/client.py deleted file mode 100644 index 2bf134bcaf6..00000000000 --- a/django/db/backends/postgresql_psycopg2/client.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.client import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/creation.py b/django/db/backends/postgresql_psycopg2/creation.py deleted file mode 100644 index aaec84e7a87..00000000000 --- a/django/db/backends/postgresql_psycopg2/creation.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.creation import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/features.py b/django/db/backends/postgresql_psycopg2/features.py deleted file mode 100644 index 3582a1754e9..00000000000 --- a/django/db/backends/postgresql_psycopg2/features.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.features import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/introspection.py b/django/db/backends/postgresql_psycopg2/introspection.py deleted file mode 100644 index 1191bb2f5a9..00000000000 --- a/django/db/backends/postgresql_psycopg2/introspection.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.introspection import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py deleted file mode 100644 index a45f5e5611a..00000000000 --- a/django/db/backends/postgresql_psycopg2/operations.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.operations import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/schema.py b/django/db/backends/postgresql_psycopg2/schema.py deleted file mode 100644 index b0263d15b79..00000000000 --- a/django/db/backends/postgresql_psycopg2/schema.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.schema import * # NOQA diff --git a/django/db/backends/postgresql_psycopg2/utils.py b/django/db/backends/postgresql_psycopg2/utils.py deleted file mode 100644 index c3e6ffe2549..00000000000 --- a/django/db/backends/postgresql_psycopg2/utils.py +++ /dev/null @@ -1 +0,0 @@ -from ..postgresql.utils import * # NOQA diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index 3b58097bf00..46397061465 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -236,7 +236,7 @@ in Django 3.0. See :ref:`deprecated-features-2.0` for details on these changes, including how to remove usage of these features. -* ... +* The ``django.db.backends.postgresql_psycopg2`` module is removed. See :ref:`deprecated-features-2.1` for details on these changes, including how to remove usage of these features.