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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: Ibcee4f631d98f5897b793613f241f646e9a76cd9
---
M pywikibot/page/_revision.py
M pywikibot/specialbots/_unlink.py
M pywikibot/tools/_logging.py
M scripts/basic.py
M scripts/fixing_redirects.py
M scripts/illustrate_wikidata.py
M scripts/image.py
M scripts/movepages.py
M scripts/newitem.py
M scripts/speedy_delete.py
M scripts/touch.py
M scripts/unlink.py
M scripts/unusedfiles.py
M tests/date_tests.py
M tests/edit_failure_tests.py
M tests/site_decorators_tests.py
M tests/time_tests.py
M tests/uploadbot_tests.py
M tests/wikistats_tests.py
19 files changed, 77 insertions(+), 77 deletions(-)

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




diff --git a/pywikibot/page/_revision.py b/pywikibot/page/_revision.py
index e0b62a3..81f093d 100644
--- a/pywikibot/page/_revision.py
+++ b/pywikibot/page/_revision.py
@@ -1,9 +1,9 @@
-"""Object representing page revision."""
 #
-# (C) Pywikibot team, 2008-2024
+# (C) Pywikibot team, 2008-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Object representing page revision."""
 from __future__ import annotations

 import hashlib
diff --git a/pywikibot/specialbots/_unlink.py b/pywikibot/specialbots/_unlink.py
index 6526f49..593e730 100644
--- a/pywikibot/specialbots/_unlink.py
+++ b/pywikibot/specialbots/_unlink.py
@@ -1,12 +1,12 @@
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Special bot library containing BaseUnlinkBot.

 Do not import classes directly from here but from specialbots.
 """
-#
-# (C) Pywikibot team, 2003-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 from pywikibot.bot import AutomaticTWSummaryBot, ExistingPageBot
diff --git a/pywikibot/tools/_logging.py b/pywikibot/tools/_logging.py
index 884abe4..f90bd87 100644
--- a/pywikibot/tools/_logging.py
+++ b/pywikibot/tools/_logging.py
@@ -1,9 +1,9 @@
-"""Logging tools."""
 #
-# (C) Pywikibot team, 2009-2024
+# (C) Pywikibot team, 2009-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Logging tools."""
 from __future__ import annotations

 import logging
diff --git a/scripts/basic.py b/scripts/basic.py
index 1b5e129..47c13b6 100755
--- a/scripts/basic.py
+++ b/scripts/basic.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """An incomplete sample script.

 This is not a complete bot; rather, it is a template from which simple
@@ -43,11 +48,6 @@

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

 import pywikibot
diff --git a/scripts/fixing_redirects.py b/scripts/fixing_redirects.py
index dba56d8..6b2e3aa 100755
--- a/scripts/fixing_redirects.py
+++ b/scripts/fixing_redirects.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2004-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Correct all redirect links in featured pages or only one page of each wiki.

 Can be used with:
@@ -15,11 +20,6 @@

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

 import re
diff --git a/scripts/illustrate_wikidata.py b/scripts/illustrate_wikidata.py
index 135c1e0..8bfd71a 100755
--- a/scripts/illustrate_wikidata.py
+++ b/scripts/illustrate_wikidata.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2013-2026
+#
+# Distributed under the terms of MIT license.
+#
 """Bot to add images to Wikidata items.

 The image is extracted from the page_props. For this to be available the
@@ -17,11 +22,6 @@

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

 import pywikibot
diff --git a/scripts/image.py b/scripts/image.py
index 2c738cb..d34157c 100755
--- a/scripts/image.py
+++ b/scripts/image.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2013-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This script can be used to change one image to another or remove an image.

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

     python pwb.py image Flag.jpg Flag.svg
 """
-#
-# (C) Pywikibot team, 2013-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/movepages.py b/scripts/movepages.py
index 0850b4f..6b3d342 100755
--- a/scripts/movepages.py
+++ b/scripts/movepages.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2006-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This script can move pages.

 These command line parameters can be used to specify which pages to work
@@ -35,11 +40,6 @@
                 [[topage]] ... Argument can also be given as
                 ``-pairsfile:filename``
 """
-#
-# (C) Pywikibot team, 2006-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/scripts/newitem.py b/scripts/newitem.py
index 98c9c15..7015f8a 100755
--- a/scripts/newitem.py
+++ b/scripts/newitem.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This script creates new items on Wikidata based on certain criteria.

 * When was the (Wikipedia) page created?
@@ -17,11 +22,6 @@
                   Be careful, this option can trigger edit rates or captchas
                   if your account is not autoconfirmed.
 """
-#
-# (C) Pywikibot team, 2014-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 from datetime import timedelta
diff --git a/scripts/speedy_delete.py b/scripts/speedy_delete.py
index 4886bef..1634ae9 100755
--- a/scripts/speedy_delete.py
+++ b/scripts/speedy_delete.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Help sysops to quickly check and/or delete pages listed for speedy deletion.

 This bot trawls through candidates for speedy deletion in a fast
@@ -20,11 +25,6 @@

 .. note:: This script currently only works for the Wikipedia project.
 """
-#
-# (C) Pywikibot team, 2007-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import time
diff --git a/scripts/touch.py b/scripts/touch.py
index b751a6d..4164898 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2009-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot goes over multiple pages of a wiki, and edits them without changes.

 This is for example used to get category links in templates working.
@@ -22,11 +27,6 @@

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

 from collections import defaultdict
diff --git a/scripts/unlink.py b/scripts/unlink.py
index 47d0a88..c18e6e5 100755
--- a/scripts/unlink.py
+++ b/scripts/unlink.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot unlinks a page on every page that links to it.

 This script understands this command-line argument:
@@ -27,11 +32,6 @@
 .. versionchanged:: 9.4
    script was recovered.
 """
-#
-# (C) Pywikibot team, 2007-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import pywikibot
diff --git a/scripts/unusedfiles.py b/scripts/unusedfiles.py
index d9309c0..0dd6568 100755
--- a/scripts/unusedfiles.py
+++ b/scripts/unusedfiles.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """This bot appends some text to all unused images and notifies uploaders.

 Parameters:
@@ -19,11 +24,6 @@

 -usertemplate:  [str] Use a custom template to warn the uploader.
 """
-#
-# (C) Pywikibot team, 2007-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import re
diff --git a/tests/date_tests.py b/tests/date_tests.py
index 8db37fe..75f4a9f 100755
--- a/tests/date_tests.py
+++ b/tests/date_tests.py
@@ -1,10 +1,10 @@
 #!/usr/bin/env python3
-"""Tests for the date module."""
 #
-# (C) Pywikibot team, 2012-2024
+# (C) Pywikibot team, 2012-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the date module."""
 from __future__ import annotations

 import unittest
diff --git a/tests/edit_failure_tests.py b/tests/edit_failure_tests.py
index d78c6f2..10d0dc9 100755
--- a/tests/edit_failure_tests.py
+++ b/tests/edit_failure_tests.py
@@ -1,14 +1,14 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Tests for edit failures.

 These tests should never write to the wiki, unless something has broken
 badly.
 """
-#
-# (C) Pywikibot team, 2014-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import unittest
diff --git a/tests/site_decorators_tests.py b/tests/site_decorators_tests.py
index 2bb893e..3977dd4 100755
--- a/tests/site_decorators_tests.py
+++ b/tests/site_decorators_tests.py
@@ -1,10 +1,10 @@
 #!/usr/bin/env python3
-"""Tests against a fake Site object."""
 #
-# (C) Pywikibot team, 2012-2024
+# (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
diff --git a/tests/time_tests.py b/tests/time_tests.py
index 3e682cf..df7721b 100755
--- a/tests/time_tests.py
+++ b/tests/time_tests.py
@@ -1,10 +1,10 @@
 #!/usr/bin/env python3
-"""Tests for the Timestamp class."""
 #
-# (C) Pywikibot team, 2014-2024
+# (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Tests for the Timestamp class."""
 from __future__ import annotations

 import calendar
diff --git a/tests/uploadbot_tests.py b/tests/uploadbot_tests.py
index fe353b4..f1c4795 100755
--- a/tests/uploadbot_tests.py
+++ b/tests/uploadbot_tests.py
@@ -1,13 +1,13 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2014-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """UploadRobot test.

 These tests write to the wiki.
 """
-#
-# (C) Pywikibot team, 2014-2024
-#
-# Distributed under the terms of the MIT license.
-#
 from __future__ import annotations

 import os
diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py
index a667fbf..2ee718e 100755
--- a/tests/wikistats_tests.py
+++ b/tests/wikistats_tests.py
@@ -1,10 +1,10 @@
 #!/usr/bin/env python3
-"""Test cases for the WikiStats dataset."""
 #
-# (C) Pywikibot team, 2014-2024
+# (C) Pywikibot team, 2014-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Test cases for the WikiStats dataset."""
 from __future__ import annotations

 import sys

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