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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: I6861c60ce218ee0f01f4a5061ba309e79f3fafdb
---
M docs/conf.py
M pywikibot/__metadata__.py
M pywikibot/backports.py
M pywikibot/bot_choice.py
M pywikibot/comms/eventstreams.py
M pywikibot/diff.py
M pywikibot/page/_collections.py
M pywikibot/proofreadpage.py
M pywikibot/tools/djvu.py
M scripts/__init__.py
M scripts/category_graph.py
M scripts/transferbot.py
M tests/family_tests.py
M tests/http_tests.py
M tests/script_tests.py
M tests/tools_threading_tests.py
16 files changed, 59 insertions(+), 43 deletions(-)

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




diff --git a/docs/conf.py b/docs/conf.py
index 24effa5..29aeaba 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,4 +1,3 @@
-"""Configuration file for Sphinx."""
 #
 # (C) Pywikibot team, 2014-2026
 #
@@ -15,6 +14,8 @@
 #
 # All configuration values have a default; values that are commented out
 # serve to show the default.
+"""Configuration file for Sphinx."""
+
 from __future__ import annotations

 # If extensions (or modules to document with autodoc) are in another directory,
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 6a54077..96aff7e 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -1,12 +1,13 @@
-"""Pywikibot metadata file.
-
-.. versionadded:: 4.0
-"""
 #
 # (C) Pywikibot team, 2020-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Pywikibot metadata file.
+
+.. versionadded:: 4.0
+"""
+
 from __future__ import annotations

 from time import strftime
diff --git a/pywikibot/backports.py b/pywikibot/backports.py
index d8b99d2..4d8df0c 100644
--- a/pywikibot/backports.py
+++ b/pywikibot/backports.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This module contains backports to support older Python versions.

 .. caution:: This module is not part of the public pywikibot API.
@@ -7,11 +12,7 @@
 .. versionchanged:: 10.0
    This module is 'private'.
 """
-#
-# (C) Pywikibot team, 2014-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import re
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py
index b502be2..ad3efd4 100644
--- a/pywikibot/bot_choice.py
+++ b/pywikibot/bot_choice.py
@@ -1,9 +1,10 @@
-"""Options and Choices for :py:meth:`pywikibot.input_choice`."""
 #
 # (C) Pywikibot team, 2015-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Options and Choices for :py:meth:`pywikibot.input_choice`."""
+
 from __future__ import annotations

 import re
diff --git a/pywikibot/comms/eventstreams.py b/pywikibot/comms/eventstreams.py
index 28697bc..8ae37d0 100644
--- a/pywikibot/comms/eventstreams.py
+++ b/pywikibot/comms/eventstreams.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2017-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Server-Sent Events client.

 This file is part of the Pywikibot framework.
@@ -10,11 +15,7 @@
 .. versionchanged:: 10.0
    ``requests-sse`` package is required instead of ``sseclient``.
 """
-#
-# (C) Pywikibot team, 2017-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import json
diff --git a/pywikibot/diff.py b/pywikibot/diff.py
index 7aa1cc9..1d16f89 100644
--- a/pywikibot/diff.py
+++ b/pywikibot/diff.py
@@ -1,9 +1,10 @@
-"""Diff module."""
 #
 # (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Diff module."""
+
 from __future__ import annotations

 import difflib
diff --git a/pywikibot/page/_collections.py b/pywikibot/page/_collections.py
index b95b059..b55e412 100644
--- a/pywikibot/page/_collections.py
+++ b/pywikibot/page/_collections.py
@@ -1,9 +1,10 @@
-"""Structures holding data for Wikibase entities."""
 #
 # (C) Pywikibot team, 2019-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Structures holding data for Wikibase entities."""
+
 from __future__ import annotations

 import reprlib
diff --git a/pywikibot/proofreadpage.py b/pywikibot/proofreadpage.py
index dbece5b..7f00170 100644
--- a/pywikibot/proofreadpage.py
+++ b/pywikibot/proofreadpage.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2015-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Objects used with ProofreadPage Extension.

 OCR support of page scans via:
@@ -9,11 +14,7 @@

 .. seealso:: https://wikisource.org/wiki/Wikisource:Google_OCR
 """
-#
-# (C) Pywikibot team, 2015-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import collections.abc
diff --git a/pywikibot/tools/djvu.py b/pywikibot/tools/djvu.py
index 56db287..9594673 100644
--- a/pywikibot/tools/djvu.py
+++ b/pywikibot/tools/djvu.py
@@ -1,9 +1,10 @@
-"""Wrapper around djvulibre to access djvu files properties and content."""
 #
 # (C) Pywikibot team, 2015-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Wrapper around djvulibre to access djvu files properties and content."""
+
 from __future__ import annotations

 import os
diff --git a/scripts/__init__.py b/scripts/__init__.py
index aa69d1f..8ac4b01 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2021-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """**Scripts** folder contains predefined scripts easy to use.

 Scripts are only available with Pywikibot if installed in directory mode
@@ -24,11 +29,7 @@
 - find a script even if given script name does not match a filename e.g.
   due to spelling mistake
 """
-#
-# (C) Pywikibot team, 2021-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 from pathlib import Path
diff --git a/scripts/category_graph.py b/scripts/category_graph.py
index 1c5148d..0ae3a38 100755
--- a/scripts/category_graph.py
+++ b/scripts/category_graph.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2022-2026
+#
+# Distributed under the terms of the MIT license.
+#
 r"""Visualizes category hierarchy.

 Generates graphical representation in formats dot, svg and html5
@@ -45,11 +50,7 @@

 .. versionadded:: 8.0
 """
-#
-# (C) Pywikibot team, 2022-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import argparse
diff --git a/scripts/transferbot.py b/scripts/transferbot.py
index c96f576..adef285 100755
--- a/scripts/transferbot.py
+++ b/scripts/transferbot.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
 r"""This script transfers pages from a source wiki to a target wiki.

 It also copies edit history to a subpage.
@@ -43,11 +48,7 @@
     python pwb.py transferbot -site:wikipedia:en -tolang:de \
     -wantedtemplates:10 -target
 """
-#
-# (C) Pywikibot team, 2014-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import pywikibot
diff --git a/tests/family_tests.py b/tests/family_tests.py
index 6d530d6..761de91 100755
--- a/tests/family_tests.py
+++ b/tests/family_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for the family module."""
 #
 # (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the family module."""
+
 from __future__ import annotations

 import unittest
diff --git a/tests/http_tests.py b/tests/http_tests.py
index e49743e..ea26d1d 100755
--- a/tests/http_tests.py
+++ b/tests/http_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for http module."""
 #
 # (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for http module."""
+
 from __future__ import annotations

 import re
diff --git a/tests/script_tests.py b/tests/script_tests.py
index 1c74152..b69407a 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Test that each script can be compiled and executed."""
 #
 # (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test that each script can be compiled and executed."""
+
 from __future__ import annotations

 import sys
diff --git a/tests/tools_threading_tests.py b/tests/tools_threading_tests.py
index 3cd82ed..4711005 100755
--- a/tests/tools_threading_tests.py
+++ b/tests/tools_threading_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests for threading tools."""
 #
 # (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for threading tools."""
+
 from __future__ import annotations

 import time

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