Refs #23919 -- Stopped inheriting from object to define new style classes.

This commit is contained in:
Simon Charette 2017-01-19 02:39:46 -05:00 committed by Claude Paroz
parent a556396339
commit cecc079168
293 changed files with 512 additions and 514 deletions

View file

@ -43,7 +43,7 @@ def get_field_names_from_opts(opts):
))
class RawQuery(object):
class RawQuery:
"""
A single raw SQL query
"""
@ -111,7 +111,7 @@ class RawQuery(object):
self.cursor.execute(self.sql, params)
class Query(object):
class Query:
"""
A single SQL query.
"""
@ -2049,7 +2049,7 @@ def is_reverse_o2o(field):
return field.is_relation and field.one_to_one and not field.concrete
class JoinPromoter(object):
class JoinPromoter:
"""
A class to abstract away join promotion problems for complex filter
conditions.