Refs #23919 -- Replaced super(ClassName, self) with super().

This commit is contained in:
chillaranand 2017-01-21 18:43:44 +05:30 committed by Tim Graham
parent dc165ec8e5
commit d6eaf7c018
339 changed files with 1221 additions and 1296 deletions

View file

@ -56,7 +56,7 @@ class FoodQuerySet(models.query.QuerySet):
class BaseFoodManager(models.Manager):
def __init__(self, a, b, c=1, d=2):
super(BaseFoodManager, self).__init__()
super().__init__()
self.args = (a, b, c, d)

View file

@ -628,14 +628,14 @@ class MakeMigrationsTests(MigrationTestBase):
"""
def setUp(self):
super(MakeMigrationsTests, self).setUp()
super().setUp()
self._old_models = apps.app_configs['migrations'].models.copy()
def tearDown(self):
apps.app_configs['migrations'].models = self._old_models
apps.all_models['migrations'] = self._old_models
apps.clear_cache()
super(MakeMigrationsTests, self).tearDown()
super().tearDown()
def test_files_content(self):
self.assertTableNotExists("migrations_unicodemodel")