jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238697?usp=email )

Change subject: Move copyright headers above module docstrings
......................................................................

Move copyright headers above module docstrings

Bug: T416673
Change-Id: I5caa23d7ead86d1f8906d6c473a79adba6697aec
---
M pywikibot/daemonize.py
M pywikibot/scripts/version.py
M pywikibot/titletranslate.py
M pywikibot/userinterfaces/terminal_interface_win32.py
M pywikibot/userinterfaces/transliteration.py
M pywikibot/xmlreader.py
M scripts/blockpageschecker.py
M scripts/category.py
M scripts/clean_sandbox.py
M scripts/delinker.py
M scripts/imagetransfer.py
M scripts/misspelling.py
M scripts/noreferences.py
M scripts/redirect.py
M scripts/solve_disambiguation.py
M scripts/templatecount.py
M scripts/upload.py
M scripts/watchlist.py
M scripts/weblinkchecker.py
M tests/i18n_tests.py
20 files changed, 88 insertions(+), 83 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/daemonize.py b/pywikibot/daemonize.py
index a00c131..ccf591e 100644
--- a/pywikibot/daemonize.py
+++ b/pywikibot/daemonize.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Module to daemonize the current process on POSIX systems.

 This module provides a function :func:`daemonize` to turn the current
@@ -49,11 +54,6 @@
        # This code only runs in the daemon process
        background_task()
 """
-#
-# (C) Pywikibot team, 2007-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import os
diff --git a/pywikibot/scripts/version.py b/pywikibot/scripts/version.py
index 661432b..832fae7 100755
--- a/pywikibot/scripts/version.py
+++ b/pywikibot/scripts/version.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to determine the Pywikibot version (tag, revision and date).

 The following option is supported:
@@ -26,11 +31,6 @@
       ``True`` or to a custom UA string, or if
       *fake_user_agent_exceptions* is defined in the :mod:`config` file.
 """
-#
-# (C) Pywikibot team, 2007-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import os
diff --git a/pywikibot/titletranslate.py b/pywikibot/titletranslate.py
index 1d381be..36c7b0b 100644
--- a/pywikibot/titletranslate.py
+++ b/pywikibot/titletranslate.py
@@ -1,9 +1,9 @@
-"""Title translate module."""
 #
-# (C) Pywikibot team, 2003-2025
+# (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Title translate module."""
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/userinterfaces/terminal_interface_win32.py 
b/pywikibot/userinterfaces/terminal_interface_win32.py
index 1001eda..626a589 100644
--- a/pywikibot/userinterfaces/terminal_interface_win32.py
+++ b/pywikibot/userinterfaces/terminal_interface_win32.py
@@ -1,9 +1,9 @@
-"""User interface for Win32 terminals."""
 #
-# (C) Pywikibot team, 2003-2025
+# (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""User interface for Win32 terminals."""
 from __future__ import annotations

 import ctypes
diff --git a/pywikibot/userinterfaces/transliteration.py 
b/pywikibot/userinterfaces/transliteration.py
index 94179b4..2536499 100644
--- a/pywikibot/userinterfaces/transliteration.py
+++ b/pywikibot/userinterfaces/transliteration.py
@@ -1,9 +1,9 @@
-"""Module to transliterate text."""
 #
-# (C) Pywikibot team, 2006-2025
+# (C) Pywikibot team, 2006-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Module to transliterate text."""
 from __future__ import annotations

 from pywikibot.tools import (
diff --git a/pywikibot/xmlreader.py b/pywikibot/xmlreader.py
index e201b72..9f1ccc3 100644
--- a/pywikibot/xmlreader.py
+++ b/pywikibot/xmlreader.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2005-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """XML reading module.

 Each XmlEntry object represents a page, as read from an XML source
@@ -10,11 +15,6 @@
    *defusedxml* is used in favour of *xml.etree* if present to prevent
    vulnerable XML attacks. *defusedxml* 0.7.1 or higher is recommended.
 """
-#
-# (C) Pywikibot team, 2005-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py
index 2348e46..d7d8d7a 100755
--- a/scripts/blockpageschecker.py
+++ b/scripts/blockpageschecker.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """A bot to remove stale protection templates from unprotected pages.

 Very often sysops block the pages for a set time but then they forget to
@@ -43,11 +48,6 @@

     python pwb.py blockpageschecker -show -protectedpages:4
 """
-#
-# (C) Pywikibot team, 2007-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/category.py b/scripts/category.py
index 86be2c8..0aeff5c 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2004-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to manage categories.

 Syntax:
@@ -152,11 +157,6 @@
 .. versionchanged:: 8.0
    :mod:`pagegenerators` are supported with "move" and "remove" action.
 """
-#
-# (C) Pywikibot team, 2004-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import math
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index 241a1f3..175a7b5 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot resets a (user) sandbox with predefined text.

 This script understands the following command-line arguments:
@@ -43,11 +48,6 @@
 .. seealso:: :python:`Supported .ini File Structure
    <library/configparser.html#supported-ini-file-structure>`
 """
-#
-# (C) Pywikibot team, 2006-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import datetime
diff --git a/scripts/delinker.py b/scripts/delinker.py
index 9357bee..b0e4b86 100755
--- a/scripts/delinker.py
+++ b/scripts/delinker.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Delink removed files from wiki.

 This script keeps track of image deletions and delinks removed files
@@ -35,11 +40,6 @@
 .. versionchanged:: 9.4
    *-category* option was added.
 """
-#
-# (C) Pywikibot team, 2006-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import configparser
diff --git a/scripts/imagetransfer.py b/scripts/imagetransfer.py
index d6c085e..c7962b8 100755
--- a/scripts/imagetransfer.py
+++ b/scripts/imagetransfer.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2004-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to copy images to Wikimedia Commons, or to another wiki.

 Syntax:
@@ -42,11 +47,6 @@

 &params;
 """
-#
-# (C) Pywikibot team, 2004-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/misspelling.py b/scripts/misspelling.py
index 4637cae..0756619 100755
--- a/scripts/misspelling.py
+++ b/scripts/misspelling.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This script fixes links that contain common spelling mistakes.

 This is only possible on wikis that have a template for these misspellings.
@@ -19,11 +24,6 @@
                misspelling pages, starting at XY. If the -start argument is not
                given, it starts at the beginning.
 """
-#
-# (C) Pywikibot team, 2007-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 from collections.abc import Generator
diff --git a/scripts/noreferences.py b/scripts/noreferences.py
index 33d6fc0..aff4778 100755
--- a/scripts/noreferences.py
+++ b/scripts/noreferences.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This script adds a missing references section to pages.

 It goes over multiple pages, searches for pages where <references />
@@ -27,11 +32,6 @@
 bandwidth. Instead, use the -xml parameter, or use another way to generate
 a list of affected articles
 """
-#
-# (C) Pywikibot team, 2007-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/redirect.py b/scripts/redirect.py
index f03d81b..04c3e87 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2004-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to resolve double redirects, and to delete broken redirects.

 Requires access to MediaWiki's maintenance pages or to a XML dump file.
@@ -70,11 +75,6 @@

 &params;
 """
-#
-# (C) Pywikibot team, 2004-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import datetime
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index fef870a..4363ee8 100755
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to help a human solve disambiguations by presenting a set of options.

 Specify the disambiguation page on the command line.
@@ -72,11 +77,6 @@

     python pwb.py solve_disambiguation -just -pos:New_Name Old_Name
 """
-#
-# (C) Pywikibot team, 2003-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/templatecount.py b/scripts/templatecount.py
index 133d5bc..c1ae563 100755
--- a/scripts/templatecount.py
+++ b/scripts/templatecount.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Display the list of pages transcluding a given list of templates.

 It can also be used to simply count the number of pages (rather than
@@ -30,11 +35,6 @@

     python pwb.py templatecount -list -namespace:14 cfd cfdu
 """
-#
-# (C) Pywikibot team, 2006-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 from collections.abc import Generator
diff --git a/scripts/upload.py b/scripts/upload.py
index 20b854e..1d6dc3e 100755
--- a/scripts/upload.py
+++ b/scripts/upload.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to upload images to Wikipedia.

 The following parameters are supported:
@@ -66,11 +71,6 @@
 The script will ask for the location of an image(s), if not given as a
 parameter, and for a description.
 """
-#
-# (C) Pywikibot team, 2003-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import math
diff --git a/scripts/watchlist.py b/scripts/watchlist.py
index b2fb03f..54badd9 100755
--- a/scripts/watchlist.py
+++ b/scripts/watchlist.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2005-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Allows access to the bot account's watchlist.

 The watchlist can be updated manually by running this script.
@@ -24,11 +29,6 @@
 .. versionchanged:: 7.7
    watchlist is retrieved in parallel tasks.
 """
-#
-# (C) Pywikibot team, 2005-2025
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import datetime
diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py
index b1ce723..0531812 100755
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2005-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot is used for checking external links found at the wiki.

 It checks several pages at once, with a limit set by the config variable
diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py
index 24533be..e4f0ef0 100755
--- a/tests/i18n_tests.py
+++ b/tests/i18n_tests.py
@@ -1,10 +1,10 @@
 #!/usr/bin/env python3
-"""Test i18n module."""
 #
-# (C) Pywikibot team, 2007-2025
+# (C) Pywikibot team, 2007-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test i18n module."""
 from __future__ import annotations

 import unittest

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238697?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: I5caa23d7ead86d1f8906d6c473a79adba6697aec
Gerrit-Change-Number: 1238697
Gerrit-PatchSet: 4
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]

Reply via email to