summaryrefslogtreecommitdiff
path: root/django/db/models/sql/where.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/models/sql/where.py
parenta5563963397aeee30c32e3c1dab31bfe453ca89f (diff)
Refs #23919 -- Stopped inheriting from object to define new style classes.
Diffstat (limited to 'django/db/models/sql/where.py')
-rw-r--r--django/db/models/sql/where.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py
index bb4e9252b4..7ce7617bfa 100644
--- a/django/db/models/sql/where.py
+++ b/django/db/models/sql/where.py
@@ -172,7 +172,7 @@ class WhereNode(tree.Node):
return any(child.is_summary for child in self.children)
-class NothingNode(object):
+class NothingNode:
"""
A node that matches nothing.
"""
@@ -182,7 +182,7 @@ class NothingNode(object):
raise EmptyResultSet
-class ExtraWhere(object):
+class ExtraWhere:
# The contents are a black box - assume no aggregates are used.
contains_aggregate = False
@@ -195,7 +195,7 @@ class ExtraWhere(object):
return " AND ".join(sqls), list(self.params or ())
-class SubqueryConstraint(object):
+class SubqueryConstraint:
# Even if aggregates would be used in a subquery, the outer query isn't
# interested about those.
contains_aggregate = False