diff options
author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/deprecation | |
parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
download | django-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/deprecation')
-rw-r--r-- | tests/deprecation/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py index 1afd52f943..ef0284b378 100644 --- a/tests/deprecation/tests.py +++ b/tests/deprecation/tests.py @@ -85,7 +85,7 @@ class RenameMethodsTests(SimpleTestCase): class Deprecated(Renamed): def old(self): - super(Deprecated, self).old() + super().old() warnings.simplefilter('always') deprecated = Deprecated() deprecated.new() @@ -115,7 +115,7 @@ class RenameMethodsTests(SimpleTestCase): class Renamed(Deprecated): def new(self): - super(Renamed, self).new() + super().new() warnings.simplefilter('always') renamed = Renamed() renamed.new() @@ -140,11 +140,11 @@ class RenameMethodsTests(SimpleTestCase): class RenamedMixin: def new(self): - super(RenamedMixin, self).new() + super().new() class DeprecatedMixin: def old(self): - super(DeprecatedMixin, self).old() + super().old() class Deprecated(DeprecatedMixin, RenamedMixin, Renamed): pass |