summaryrefslogtreecommitdiff
path: root/django/db/utils.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2017-01-19 02:39:46 -0500
committerClaude Paroz <claude@2xlibre.net>2017-01-19 08:39:46 +0100
commitcecc079168e8669138728d31611ff3a1e7eb3a9f (patch)
tree2415083d44f84c6f206930fc689a8c0e50a98caa /django/db/utils.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'django/db/utils.py')
-rw-r--r--django/db/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/utils.py b/django/db/utils.py
index a65510ea80..8ca3f860b3 100644
--- a/django/db/utils.py
+++ b/django/db/utils.py
@@ -50,7 +50,7 @@ class NotSupportedError(DatabaseError):
pass
-class DatabaseErrorWrapper(object):
+class DatabaseErrorWrapper:
"""
Context manager and decorator that re-throws backend-specific database
exceptions using Django's common wrappers.
@@ -141,7 +141,7 @@ class ConnectionDoesNotExist(Exception):
pass
-class ConnectionHandler(object):
+class ConnectionHandler:
def __init__(self, databases=None):
"""
databases is an optional dictionary of database definitions (structured
@@ -234,7 +234,7 @@ class ConnectionHandler(object):
connection.close()
-class ConnectionRouter(object):
+class ConnectionRouter:
def __init__(self, routers=None):
"""
If routers is not specified, will default to settings.DATABASE_ROUTERS.