jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238765?usp=email )
Change subject: Move copyright headers above module docstrings
......................................................................
Move copyright headers above module docstrings
Bug: T416673
Change-Id: Ib9121c357e7f4e3c78d3a0ea0cd9f61ccf887382
---
M pywikibot/data/__init__.py
M pywikibot/page/__init__.py
M pywikibot/scripts/i18n/__init__.py
M pywikibot/userinterfaces/__init__.py
M pywikibot/userinterfaces/terminal_interface.py
M pywikibot/userinterfaces/terminal_interface_unix.py
M scripts/category_redirect.py
M scripts/cosmetic_changes.py
M tests/category_tests.py
M tests/checkimages_tests.py
M tests/data/fixes.py
M tests/data/set-fixes.py
M tests/data_ingestion_tests.py
M tests/fixes_tests.py
M tests/harvest_template_tests.py
M tests/plural_tests.py
M tests/pwb/print_env.py
M tests/pwb/print_locals.py
M tests/reflinks_tests.py
M tests/site_obsoletesites_tests.py
M tests/template_bot_tests.py
M tests/tools_chars_tests.py
M tests/ui_options_tests.py
23 files changed, 63 insertions(+), 67 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/data/__init__.py b/pywikibot/data/__init__.py
index ce04a42..292ade6 100644
--- a/pywikibot/data/__init__.py
+++ b/pywikibot/data/__init__.py
@@ -1,9 +1,9 @@
-"""Module providing several layers of data access to the wiki."""
#
-# (C) Pywikibot team, 2007-2023
+# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Module providing several layers of data access to the wiki."""
from __future__ import annotations
import pywikibot
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 81b95ee..a20225a 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -1,9 +1,9 @@
-"""Interface of various types of MediaWiki pages."""
#
-# (C) Pywikibot team, 2022-2023
+# (C) Pywikibot team, 2022-2026
#
# Distributed under the terms of the MIT license.
#
+"""Interface of various types of MediaWiki pages."""
from __future__ import annotations
from typing import Union
diff --git a/pywikibot/scripts/i18n/__init__.py
b/pywikibot/scripts/i18n/__init__.py
index 4b4df0e..46a6cda 100644
--- a/pywikibot/scripts/i18n/__init__.py
+++ b/pywikibot/scripts/i18n/__init__.py
@@ -1,15 +1,13 @@
+#
+# (C) Pywikibot team, 2011-2026
+#
+# Distributed under the terms of the MIT license.
+#
+# Translations by translators are licensed CC BY 3.0
+#
"""Folder containing i18n translations bundles.
This file exists to help pkgutil find the i18n data. There is no actual
python code in this package.
"""
from __future__ import annotations
-
-
-#
-# (C) Pywikibot team, 2011-2022
-#
-# Distributed under the terms of the MIT license.
-#
-# Translations by translators are licensed CC BY 3.0
-#
diff --git a/pywikibot/userinterfaces/__init__.py
b/pywikibot/userinterfaces/__init__.py
index 8d1b028..57fbcad 100644
--- a/pywikibot/userinterfaces/__init__.py
+++ b/pywikibot/userinterfaces/__init__.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""User interfaces module.
The user interface object must define its own `init_handlers()` method
@@ -15,10 +20,3 @@
:class:`userinterfaces._interface_base.ABUIC`.
"""
from __future__ import annotations
-
-
-#
-# (C) Pywikibot team, 2008-2022
-#
-# Distributed under the terms of the MIT license.
-#
diff --git a/pywikibot/userinterfaces/terminal_interface.py
b/pywikibot/userinterfaces/terminal_interface.py
index ce0b5c8..bb09c89 100644
--- a/pywikibot/userinterfaces/terminal_interface.py
+++ b/pywikibot/userinterfaces/terminal_interface.py
@@ -1,12 +1,12 @@
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Platform independent terminal interface module.
It imports the appropriate operating system specific implementation.
"""
-#
-# (C) Pywikibot team, 2003-2023
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import sys
diff --git a/pywikibot/userinterfaces/terminal_interface_unix.py
b/pywikibot/userinterfaces/terminal_interface_unix.py
index fc789e2..0abced0 100644
--- a/pywikibot/userinterfaces/terminal_interface_unix.py
+++ b/pywikibot/userinterfaces/terminal_interface_unix.py
@@ -1,9 +1,9 @@
-"""User interface for Unix terminals."""
#
-# (C) Pywikibot team, 2003-2022
+# (C) Pywikibot team, 2003-2026
#
# Distributed under the terms of the MIT license.
#
+"""User interface for Unix terminals."""
from __future__ import annotations
import re
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py
index fc4e0cc..d7f6855 100755
--- a/scripts/category_redirect.py
+++ b/scripts/category_redirect.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""This bot will move pages out of redirected categories.
The bot will look for categories that are marked with a category
@@ -34,11 +39,6 @@
:py:obj:`ConfigParserBot <bot.ConfigParserBot>`. All options
can be set within a settings file which is scripts.ini by default.
"""
-#
-# (C) Pywikibot team, 2008-2023
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import pickle
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py
index 346d721..093afa1 100755
--- a/scripts/cosmetic_changes.py
+++ b/scripts/cosmetic_changes.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""This module can do slight modifications to tidy a wiki page's source code.
The changes are not supposed to change the look of the rendered wiki page.
@@ -30,11 +35,6 @@
For further information see pywikibot/cosmetic_changes.py
"""
-#
-# (C) Pywikibot team, 2006-2022
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
import pywikibot
diff --git a/tests/category_tests.py b/tests/category_tests.py
index b6133ec..92f4593 100755
--- a/tests/category_tests.py
+++ b/tests/category_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the Category class."""
#
-# (C) Pywikibot team, 2014-2023
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the Category class."""
from __future__ import annotations
import unittest
diff --git a/tests/checkimages_tests.py b/tests/checkimages_tests.py
index 939c68b..121e107 100755
--- a/tests/checkimages_tests.py
+++ b/tests/checkimages_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Unit tests for checkimages script."""
#
-# (C) Pywikibot team, 2015-2023
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Unit tests for checkimages script."""
from __future__ import annotations
import unittest
diff --git a/tests/data/fixes.py b/tests/data/fixes.py
index 9708107..9d46dcb 100644
--- a/tests/data/fixes.py
+++ b/tests/data/fixes.py
@@ -1,9 +1,9 @@
-"""Collection of fixes for tests."""
#
-# (C) Pywikibot team, 2015-2023
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Collection of fixes for tests."""
from __future__ import annotations
diff --git a/tests/data/set-fixes.py b/tests/data/set-fixes.py
index 0800174..46950e9 100644
--- a/tests/data/set-fixes.py
+++ b/tests/data/set-fixes.py
@@ -1,9 +1,9 @@
-"""Fixes implementation which overwrites the variable."""
#
-# (C) Pywikibot team, 2015-2023
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Fixes implementation which overwrites the variable."""
from __future__ import annotations
diff --git a/tests/data_ingestion_tests.py b/tests/data_ingestion_tests.py
index 82385af..07523d8 100755
--- a/tests/data_ingestion_tests.py
+++ b/tests/data_ingestion_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Unit tests for data_ingestion.py script."""
#
-# (C) Pywikibot team, 2012-2022
+# (C) Pywikibot team, 2012-2026
#
# Distributed under the terms of the MIT license.
#
+"""Unit tests for data_ingestion.py script."""
from __future__ import annotations
import unittest
diff --git a/tests/fixes_tests.py b/tests/fixes_tests.py
index 1729da7..1d26aca 100755
--- a/tests/fixes_tests.py
+++ b/tests/fixes_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for fixes module."""
#
-# (C) Pywikibot team, 2015-2022
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for fixes module."""
from __future__ import annotations
import unittest
diff --git a/tests/harvest_template_tests.py b/tests/harvest_template_tests.py
index ee25c51..438e127 100755
--- a/tests/harvest_template_tests.py
+++ b/tests/harvest_template_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for scripts/harvest_template.py."""
#
-# (C) Pywikibot team, 2022-2023
+# (C) Pywikibot team, 2022-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for scripts/harvest_template.py."""
from __future__ import annotations
import unittest
diff --git a/tests/plural_tests.py b/tests/plural_tests.py
index c690309..2dc304a 100755
--- a/tests/plural_tests.py
+++ b/tests/plural_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test plural module."""
#
-# (C) Pywikibot team, 2015-2022
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test plural module."""
from __future__ import annotations
import unittest
diff --git a/tests/pwb/print_env.py b/tests/pwb/print_env.py
index da2aedb..30e2408 100755
--- a/tests/pwb/print_env.py
+++ b/tests/pwb/print_env.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Script that forms part of pwb_tests."""
#
-# (C) Pywikibot team, 2015-2022
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Script that forms part of pwb_tests."""
from __future__ import annotations
import os
diff --git a/tests/pwb/print_locals.py b/tests/pwb/print_locals.py
index 707bca7..f954477 100755
--- a/tests/pwb/print_locals.py
+++ b/tests/pwb/print_locals.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Script that forms part of pwb_tests."""
#
-# (C) Pywikibot team, 2013-2022
+# (C) Pywikibot team, 2013-2026
#
# Distributed under the terms of the MIT license.
#
+"""Script that forms part of pwb_tests."""
from __future__ import annotations
import os.path
diff --git a/tests/reflinks_tests.py b/tests/reflinks_tests.py
index 428dd7f..c75d103 100755
--- a/tests/reflinks_tests.py
+++ b/tests/reflinks_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for reflinks script."""
#
-# (C) Pywikibot team, 2014-2022
+# (C) Pywikibot team, 2014-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for reflinks script."""
from __future__ import annotations
import unittest
diff --git a/tests/site_obsoletesites_tests.py
b/tests/site_obsoletesites_tests.py
index 292a644..39cf564 100755
--- a/tests/site_obsoletesites_tests.py
+++ b/tests/site_obsoletesites_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the site module."""
#
-# (C) Pywikibot team, 2015-2023
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the site module."""
from __future__ import annotations
import unittest
diff --git a/tests/template_bot_tests.py b/tests/template_bot_tests.py
index 0c300b1..6b57e83 100755
--- a/tests/template_bot_tests.py
+++ b/tests/template_bot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test template bot module."""
#
-# (C) Pywikibot team, 2015-2022
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test template bot module."""
from __future__ import annotations
import unittest
diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py
index fd179af..269a5b0 100755
--- a/tests/tools_chars_tests.py
+++ b/tests/tools_chars_tests.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
-"""Test tools.chars package."""
#
-# (C) Pywikibot team, 2015-2023
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
+"""Test tools.chars package."""
from __future__ import annotations
import unicodedata
diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py
index 3d8b605..e342786 100755
--- a/tests/ui_options_tests.py
+++ b/tests/ui_options_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Bot tests for input_choice options."""
#
-# (C) Pywikibot team, 2015-2022
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Bot tests for input_choice options."""
from __future__ import annotations
import unittest
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238765?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib9121c357e7f4e3c78d3a0ea0cd9f61ccf887382
Gerrit-Change-Number: 1238765
Gerrit-PatchSet: 3
Gerrit-Owner: Stitipragyan barik <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]