Use Python 3 style super (#8777)

This is one of the things that newer versions of `pylint` complains about.

* git grep -l super\( | xargs sed -i 's/super([^)]*)/super()/g'

* fix spacing
This commit is contained in:
Brad Warren
2021-04-08 13:04:51 -07:00
committed by GitHub
parent 459a254aea
commit 7f9857a81b
111 changed files with 263 additions and 263 deletions
@@ -37,7 +37,7 @@ class Authenticator(dns_common.DNSAuthenticator):
ttl = 10
def __init__(self, *args, **kwargs):
super(Authenticator, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self.r53 = boto3.client("route53")
self._resource_records: DefaultDict[str, List[Dict[str, str]]] = collections.defaultdict(list)
@@ -18,4 +18,4 @@ class Authenticator(dns_route53.Authenticator):
def __init__(self, *args, **kwargs):
warnings.warn("The 'authenticator' module was renamed 'dns_route53'",
DeprecationWarning)
super(Authenticator, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
@@ -21,7 +21,7 @@ class AuthenticatorTest(unittest.TestCase, dns_test_common.BaseAuthenticatorTest
def setUp(self):
from certbot_dns_route53._internal.dns_route53 import Authenticator
super(AuthenticatorTest, self).setUp()
super().setUp()
self.config = mock.MagicMock()