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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: Ib4b98d2bcc04c8bc1ba773a0e8fd82740bdaaa5d
---
M pywikibot/_wbtypes.py
M pywikibot/page/_user.py
M pywikibot/page/_wikibase.py
M pywikibot/scripts/generate_user_files.py
M pywikibot/scripts/wrapper.py
M pywikibot/site/_datasite.py
M scripts/coordinate_import.py
M scripts/harvest_template.py
M scripts/replicate_wiki.py
M setup.py
M tests/dry_site_tests.py
11 files changed, 50 insertions(+), 39 deletions(-)

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




diff --git a/pywikibot/_wbtypes.py b/pywikibot/_wbtypes.py
index fe661c0..68fe37b 100644
--- a/pywikibot/_wbtypes.py
+++ b/pywikibot/_wbtypes.py
@@ -1,9 +1,10 @@
-"""Wikibase data type classes."""
 #
 # (C) Pywikibot team, 2013-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Wikibase data type classes."""
+
 from __future__ import annotations

 import abc
diff --git a/pywikibot/page/_user.py b/pywikibot/page/_user.py
index 59470fe..692f79a 100644
--- a/pywikibot/page/_user.py
+++ b/pywikibot/page/_user.py
@@ -1,9 +1,10 @@
-"""Object representing a Wiki user."""
 #
 # (C) Pywikibot team, 2009-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Object representing a Wiki user."""
+
 from __future__ import annotations

 from collections.abc import Generator
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index 5f7d3f6..9ad79c4 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2013-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Objects representing various types of Wikibase pages and structures.

 This module also includes objects:
@@ -7,11 +12,7 @@
 * Property: a type of semantic data.
 * WikibaseEntity: base interface for Wikibase entities.
 """
-#
-# (C) Pywikibot team, 2013-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import json as jsonlib
diff --git a/pywikibot/scripts/generate_user_files.py 
b/pywikibot/scripts/generate_user_files.py
index be8ad99..8009140 100755
--- a/pywikibot/scripts/generate_user_files.py
+++ b/pywikibot/scripts/generate_user_files.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2010-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to create user-config.py. Other file names are not supported.

 .. versionchanged:: 7.0
@@ -10,11 +15,7 @@
    Default ``PASS_BASENAME`` was changed from ``user-password.py`` to
    ``user-password.cfg``
 """
-#
-# (C) Pywikibot team, 2010-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import os
diff --git a/pywikibot/scripts/wrapper.py b/pywikibot/scripts/wrapper.py
index 5bdcbce..4fc11a0 100755
--- a/pywikibot/scripts/wrapper.py
+++ b/pywikibot/scripts/wrapper.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2012-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Wrapper script to invoke pywikibot-based scripts.

 This wrapper script invokes script by its name in this search order:
@@ -42,11 +47,7 @@
 .. versionchanged:: 9.4
    enable external scripts via entry points.
 """
-#
-# (C) Pywikibot team, 2012-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import importlib.metadata
diff --git a/pywikibot/site/_datasite.py b/pywikibot/site/_datasite.py
index 3d99e55..0d256a8 100644
--- a/pywikibot/site/_datasite.py
+++ b/pywikibot/site/_datasite.py
@@ -1,9 +1,10 @@
-"""Objects representing API interface to Wikibase site."""
 #
 # (C) Pywikibot team, 2012-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Objects representing API interface to Wikibase site."""
+
 from __future__ import annotations

 import datetime
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index 01225e7..e69f3d9 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2013-2026
+#
+# Distributed under the terms of MIT license.
+#
 r"""Coordinate importing script.

 Usage:
@@ -41,11 +46,7 @@

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

 import pywikibot
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index c3e5ccf..a97dd56 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2013-2026
+#
+# Distributed under the terms of MIT license.
+#
 r"""Template harvesting script.

 Usage (see below for explanations and examples):
@@ -108,11 +113,7 @@
 .. versionadded:: 7.5
    the -inverse option.
 """
-#
-# (C) Pywikibot team, 2013-2026
-#
-# Distributed under the terms of MIT license.
-#
+
 from __future__ import annotations

 import re
diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py
index 9762e50..0656b24 100755
--- a/scripts/replicate_wiki.py
+++ b/scripts/replicate_wiki.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2012-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot replicates pages in a wiki to a second wiki within one family.

 Example:
@@ -41,11 +46,7 @@

 destination_wiki        destination wiki(s)
 """
-#
-# (C) Pywikibot team, 2012-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import sys
diff --git a/setup.py b/setup.py
index de235b5..f0315d5 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2009-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Installer script for Pywikibot framework.

 **How to create a new distribution:**
@@ -19,11 +24,7 @@

 .. warning:: do not upload a development release to pypi.
 """
-#
-# (C) Pywikibot team, 2009-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import configparser
diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py
index c813e1f..0ab6557 100755
--- a/tests/dry_site_tests.py
+++ b/tests/dry_site_tests.py
@@ -1,10 +1,11 @@
 #!/usr/bin/env python3
-"""Tests against a fake Site object."""
 #
 # (C) Pywikibot team, 2012-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests against a fake Site object."""
+
 from __future__ import annotations

 import unittest

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