Refs #25175 -- Removed postgresql_psycopg2 in django.db.utils.load_backend().

Follow up to 944469939b.
This commit is contained in:
Mariusz Felisiak 2021-01-06 20:15:14 +01:00 committed by GitHub
parent 6a054f7681
commit 5bcba16c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def load_backend(backend_name):
import django.db.backends import django.db.backends
builtin_backends = [ builtin_backends = [
name for _, name, ispkg in pkgutil.iter_modules(django.db.backends.__path__) name for _, name, ispkg in pkgutil.iter_modules(django.db.backends.__path__)
if ispkg and name not in {'base', 'dummy', 'postgresql_psycopg2'} if ispkg and name not in {'base', 'dummy'}
] ]
if backend_name not in ['django.db.backends.%s' % b for b in builtin_backends]: if backend_name not in ['django.db.backends.%s' % b for b in builtin_backends]:
backend_reprs = map(repr, sorted(builtin_backends)) backend_reprs = map(repr, sorted(builtin_backends))