mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
committed by
Claude Paroz
parent
a556396339
commit
cecc079168
@@ -31,7 +31,7 @@ def get_ds_file(name, ext):
|
||||
)
|
||||
|
||||
|
||||
class TestObj(object):
|
||||
class TestObj:
|
||||
"""
|
||||
Base testing object, turns keyword args into attributes.
|
||||
"""
|
||||
@@ -76,7 +76,7 @@ class TestGeom(TestObj):
|
||||
super(TestGeom, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class TestGeomSet(object):
|
||||
class TestGeomSet:
|
||||
"""
|
||||
Each attribute of this object is a list of `TestGeom` instances.
|
||||
"""
|
||||
@@ -85,7 +85,7 @@ class TestGeomSet(object):
|
||||
setattr(self, key, [TestGeom(**strconvert(kw)) for kw in value])
|
||||
|
||||
|
||||
class TestDataMixin(object):
|
||||
class TestDataMixin:
|
||||
"""
|
||||
Mixin used for GEOS/GDAL test cases that defines a `geometries`
|
||||
property, which returns and/or loads the reference geometry data.
|
||||
|
||||
Reference in New Issue
Block a user