diff options
author | Nick Pope <nick@nickpope.me.uk> | 2022-05-12 14:13:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 15:13:51 +0200 |
commit | 20e65a34aea0ace077033c84854dcf225e248f8c (patch) | |
tree | 134d285e207b161684e313ee21d5b3d346478ba7 /django/db/utils.py | |
parent | 3a82b5f655446f0ca89e3b6a92b100aa458f348f (diff) | |
download | django-20e65a34aea0ace077033c84854dcf225e248f8c.tar.gz |
Made closing in connection handlers more DRY.
Diffstat (limited to 'django/db/utils.py')
-rw-r--r-- | django/db/utils.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index 485d908fb9..3ad83b52ff 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -190,14 +190,6 @@ class ConnectionHandler(BaseConnectionHandler): backend = load_backend(db["ENGINE"]) return backend.DatabaseWrapper(db, alias) - def close_all(self): - for alias in self: - try: - connection = getattr(self._connections, alias) - except AttributeError: - continue - connection.close() - class ConnectionRouter: def __init__(self, routers=None): |