jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[Python3] Update super call

Change-Id: I78f28b02177e3446c0aac73fca5fb455167c2008
---
M scripts/commons_information.py
M tests/api_tests.py
M tests/interwiki_graph_tests.py
M tests/l10n_tests.py
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/scripts/commons_information.py b/scripts/commons_information.py
index 616c704..d9cdda4 100755
--- a/scripts/commons_information.py
+++ b/scripts/commons_information.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
"""Insert a language template into the description field."""
#
-# (C) Pywikibot team, 2015-2021
+# (C) Pywikibot team, 2015-2022
#
# Distributed under the terms of the MIT license.
#
@@ -38,7 +38,7 @@

def __init__(self, **kwargs):
"""Initialzer."""
- super(InformationBot, self).__init__(**kwargs)
+ super().__init__(**kwargs)
lang_tmp_cat = pywikibot.Category(self.site, self.lang_tmp_cat)
self.lang_tmps = lang_tmp_cat.articles(namespaces=[10])

diff --git a/tests/api_tests.py b/tests/api_tests.py
index b703b86..13a81d5 100644
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -1,6 +1,6 @@
"""API test module."""
#
-# (C) Pywikibot team, 2007-2021
+# (C) Pywikibot team, 2007-2022
#
# Distributed under the terms of the MIT license.
#
@@ -842,7 +842,7 @@
@classmethod
def setUpClass(cls):
"""Set up steward Family."""
- super(TestLazyLoginBase, cls).setUpClass()
+ super().setUpClass()
fam = pywikibot.family.AutoFamily(
'steward', 'https://steward.wikimedia.org/w/api.php')
cls.site = pywikibot.site.APISite('steward', fam)
diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py
index 406c20d..19321a4 100644
--- a/tests/interwiki_graph_tests.py
+++ b/tests/interwiki_graph_tests.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
"""Test Interwiki Graph functionality."""
#
-# (C) Pywikibot team, 2015-2021
+# (C) Pywikibot team, 2015-2022
#
# Distributed under the terms of the MIT license.
#
@@ -37,7 +37,7 @@
@classmethod
def setUpClass(cls):
"""Setup test class."""
- super(TestWiktionaryGraph, cls).setUpClass()
+ super().setUpClass()

cls.pages = {
'en': DryPage(cls.enwikt, 'origin'),
diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py
index 04388de..a7435b5 100644
--- a/tests/l10n_tests.py
+++ b/tests/l10n_tests.py
@@ -1,6 +1,6 @@
"""Test valid templates."""
#
-# (C) Pywikibot team, 2015-2021
+# (C) Pywikibot team, 2015-2022
#
# Distributed under the terms of the MIT license.
#
@@ -93,7 +93,7 @@
@classmethod
def setUpClass(cls):
"""Skip test gracefully if i18n package is missing."""
- super(TestValidTemplate, cls).setUpClass()
+ super().setUpClass()
if not i18n.messages_available():
raise unittest.SkipTest("i18n messages package '{}' not available."
.format(i18n._messages_package_name))

To view, visit change 751154. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I78f28b02177e3446c0aac73fca5fb455167c2008
Gerrit-Change-Number: 751154
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged