Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2022-01-10 00:50:44 +0300
committerGitHub <noreply@github.com>2022-01-10 00:50:44 +0300
commit7e5e51aeff46d5cda0ee92f64b9ba4b5058f5dd7 (patch)
treebdb0be0757d76088e7001f63f2b7a21294bafe98 /certbot-nginx
parented7964b424345b5d8ad98335be8f98d5c21059a6 (diff)
Use super().__init__ instead of explicitly calling named super-class. (#9166)
* Use super().__init__ instead of explicitly calling named super-class. * Fix unittest (typo fix).
Diffstat (limited to 'certbot-nginx')
-rw-r--r--certbot-nginx/certbot_nginx/_internal/nginxparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/certbot-nginx/certbot_nginx/_internal/nginxparser.py b/certbot-nginx/certbot_nginx/_internal/nginxparser.py
index 2aa677c38..03aa88db4 100644
--- a/certbot-nginx/certbot_nginx/_internal/nginxparser.py
+++ b/certbot-nginx/certbot_nginx/_internal/nginxparser.py
@@ -118,7 +118,7 @@ class UnspacedList(list):
# Turn self into a version of the source list that has spaces removed
# and all sub-lists also UnspacedList()ed
- list.__init__(self, list_source)
+ super().__init__(list_source)
for i, entry in reversed(list(enumerate(self))):
if isinstance(entry, list):
sublist = UnspacedList(entry)