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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: I6d2a20f1b9e4e7442c6b7817b40a4f6ce754b426
---
M pywikibot/__init__.py
M pywikibot/bot.py
M pywikibot/page/_basepage.py
M pywikibot/page/_category.py
M pywikibot/page/_filepage.py
M pywikibot/page/_links.py
M pywikibot/page/_page.py
M pywikibot/pagegenerators/__init__.py
M pywikibot/pagegenerators/_factory.py
M pywikibot/pagegenerators/_filters.py
M pywikibot/pagegenerators/_generators.py
M pywikibot/site/_apisite.py
M pywikibot/textlib.py
M pywikibot/throttle.py
14 files changed, 52 insertions(+), 38 deletions(-)

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




diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index a9ae08b..05c8b23 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -1,9 +1,10 @@
-"""The initialization file for the Pywikibot framework."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""The initialization file for the Pywikibot framework."""
+
 from __future__ import annotations

 import atexit
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 0d28d98..14786e3 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """User-interface related functions for building bots.

 This module supports several different bot classes which could be used in
@@ -79,11 +84,7 @@
    :class:`NoRedirectPageBot` are deprecated. Use
    :attr:`use_redirects<BaseBot.use_redirects>` attribute instead.
 """
-#
-# (C) Pywikibot team, 2008-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations


diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 51f6449..e2898f9 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -1,9 +1,10 @@
-"""Objects representing a base object for a MediaWiki page."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Objects representing a base object for a MediaWiki page."""
+
 from __future__ import annotations

 import itertools
diff --git a/pywikibot/page/_category.py b/pywikibot/page/_category.py
index a59624c..ebff882 100644
--- a/pywikibot/page/_category.py
+++ b/pywikibot/page/_category.py
@@ -1,9 +1,10 @@
-"""Object representing a MediaWiki category page."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Object representing a MediaWiki category page."""
+
 from __future__ import annotations

 from collections import defaultdict
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py
index bc834e1..cec856a 100644
--- a/pywikibot/page/_filepage.py
+++ b/pywikibot/page/_filepage.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Objects representing MediaWiki File pages.

 This module includes objects:
@@ -5,11 +10,7 @@
 * FilePage: A subclass of Page representing a file description page
 * FileInfo: a structure holding imageinfo of latest revision of FilePage
 """
-#
-# (C) Pywikibot team, 2008-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 from collections.abc import Iterable
diff --git a/pywikibot/page/_links.py b/pywikibot/page/_links.py
index 5c59a8e..ddce929 100644
--- a/pywikibot/page/_links.py
+++ b/pywikibot/page/_links.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Objects representing internal or interwiki link in wikitext.

 .. note::
@@ -5,11 +10,7 @@
    :class:`pywikibot.Page` objects represent the page itself, including
    its contents.
 """
-#
-# (C) Pywikibot team, 2008-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import re
diff --git a/pywikibot/page/_page.py b/pywikibot/page/_page.py
index e48e511..016f85e 100644
--- a/pywikibot/page/_page.py
+++ b/pywikibot/page/_page.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Objects representing a MediaWiki page.

 Various Wikibase pages are defined in ``page._wikibase.py``,
@@ -8,11 +13,7 @@
    :class:`pywikibot.Page` objects (defined here) represent the page
    itself, including its contents.
 """
-#
-# (C) Pywikibot team, 2008-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/pagegenerators/__init__.py 
b/pywikibot/pagegenerators/__init__.py
index cc9087b..ca35331 100644
--- a/pywikibot/pagegenerators/__init__.py
+++ b/pywikibot/pagegenerators/__init__.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This module offers a wide variety of page generators.

 A page generator is an object that is iterable (see :pep:`255`) and
@@ -11,11 +16,7 @@

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

 from collections.abc import Callable, Generator, Iterable
diff --git a/pywikibot/pagegenerators/_factory.py 
b/pywikibot/pagegenerators/_factory.py
index 22d5201..df01873 100644
--- a/pywikibot/pagegenerators/_factory.py
+++ b/pywikibot/pagegenerators/_factory.py
@@ -1,9 +1,10 @@
-"""GeneratorFactory module which handles pagegenerators options."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""GeneratorFactory module which handles pagegenerators options."""
+
 from __future__ import annotations

 import itertools
diff --git a/pywikibot/pagegenerators/_filters.py 
b/pywikibot/pagegenerators/_filters.py
index 1f1ff4a..3c683b9 100644
--- a/pywikibot/pagegenerators/_filters.py
+++ b/pywikibot/pagegenerators/_filters.py
@@ -1,9 +1,10 @@
-"""Page filter generators provided by the pagegenerators module."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Page filter generators provided by the pagegenerators module."""
+
 from __future__ import annotations

 import datetime
diff --git a/pywikibot/pagegenerators/_generators.py 
b/pywikibot/pagegenerators/_generators.py
index 2579492..7b102f9 100644
--- a/pywikibot/pagegenerators/_generators.py
+++ b/pywikibot/pagegenerators/_generators.py
@@ -1,9 +1,10 @@
-"""Page filter generators provided by the pagegenerators module."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Page filter generators provided by the pagegenerators module."""
+
 from __future__ import annotations

 import calendar
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index ac166b3..1569673 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -1,9 +1,10 @@
-"""Objects representing API interface to MediaWiki site."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Objects representing API interface to MediaWiki site."""
+
 from __future__ import annotations

 import datetime
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 48b0ab6..64ffa9b 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -1,9 +1,10 @@
-"""Functions for manipulating wiki-text."""
 #
 # (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Functions for manipulating wiki-text."""
+
 from __future__ import annotations

 import itertools
diff --git a/pywikibot/throttle.py b/pywikibot/throttle.py
index fe97b42..85e8b1d 100644
--- a/pywikibot/throttle.py
+++ b/pywikibot/throttle.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2008-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Mechanisms to regulate the read and write rate to wiki servers.

 This module defines the :class:`Throttle` class, which ensures that
@@ -9,11 +14,7 @@
 It supports both read and write throttling, automatic adjustment based
 on the number of concurrent bot instances, and optional lag-aware delays.
 """
-#
-# (C) Pywikibot team, 2008-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import hashlib

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