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
@@ -179,7 +179,7 @@ class AutodiscoverModulesTestCase(SimpleTestCase):
|
||||
self.assertEqual(site._registry, {'lorem': 'ipsum'})
|
||||
|
||||
|
||||
class ProxyFinder(object):
|
||||
class ProxyFinder:
|
||||
def __init__(self):
|
||||
self._cache = {}
|
||||
|
||||
@@ -208,7 +208,7 @@ class ProxyFinder(object):
|
||||
fd.close()
|
||||
|
||||
|
||||
class TestFinder(object):
|
||||
class TestFinder:
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.importer = zipimporter(*args, **kwargs)
|
||||
|
||||
@@ -219,7 +219,7 @@ class TestFinder(object):
|
||||
return TestLoader(importer)
|
||||
|
||||
|
||||
class TestLoader(object):
|
||||
class TestLoader:
|
||||
def __init__(self, importer):
|
||||
self.importer = importer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user