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

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

Move copyright headers above module docstrings

Bug: T416673
Change-Id: Ia46ad32e0f4084c2f813d2afe9615c20a617b8ba
---
M pywikibot/date.py
M pywikibot/login.py
M pywikibot/scripts/login.py
M pywikibot/specialbots/_upload.py
M pywikibot/userinterfaces/gui.py
M pywikibot/userinterfaces/terminal_interface_base.py
M scripts/interwiki.py
7 files changed, 29 insertions(+), 22 deletions(-)

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




diff --git a/pywikibot/date.py b/pywikibot/date.py
index 9e50a04..5e5be49 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -1,9 +1,10 @@
-"""Date data and manipulation module."""
 #
 # (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Date data and manipulation module."""
+
 from __future__ import annotations

 import calendar
diff --git a/pywikibot/login.py b/pywikibot/login.py
index aee1f3c..1a3ab22 100644
--- a/pywikibot/login.py
+++ b/pywikibot/login.py
@@ -1,9 +1,10 @@
-"""Library to log the bot in to a wiki account."""
 #
 # (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Library to log the bot in to a wiki account."""
+
 from __future__ import annotations

 import datetime
diff --git a/pywikibot/scripts/login.py b/pywikibot/scripts/login.py
index e8110da..4bc740d 100755
--- a/pywikibot/scripts/login.py
+++ b/pywikibot/scripts/login.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to log the bot in to a wiki account.

 Suggestion is to make a special account to use for bot use only. Make
@@ -51,11 +56,7 @@
 .. versionchanged:: 10.3
    the -cookies option
 """
-#
-# (C) Pywikibot team, 2003-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import datetime
diff --git a/pywikibot/specialbots/_upload.py b/pywikibot/specialbots/_upload.py
index 04f26be..f6670b2 100644
--- a/pywikibot/specialbots/_upload.py
+++ b/pywikibot/specialbots/_upload.py
@@ -1,12 +1,13 @@
-"""Special bot library containing UploadRobot.
-
-Do not import classes directly from here but from specialbots.
-"""
 #
 # (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Special bot library containing UploadRobot.
+
+Do not import classes directly from here but from specialbots.
+"""
+
 from __future__ import annotations

 import os
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 94eb01c..9079dc0 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """A window with a textfield where the user can edit.

 Useful for editing the contents of an article.
@@ -11,11 +16,7 @@

 .. seealso:: :mod:`editor`
 """
-#
-# (C) Pywikibot team, 2003-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import pywikibot
diff --git a/pywikibot/userinterfaces/terminal_interface_base.py 
b/pywikibot/userinterfaces/terminal_interface_base.py
index 55fc904..970aaf9 100644
--- a/pywikibot/userinterfaces/terminal_interface_base.py
+++ b/pywikibot/userinterfaces/terminal_interface_base.py
@@ -1,9 +1,10 @@
-"""Base for terminal user interfaces."""
 #
 # (C) Pywikibot team, 2003-2026
 #
 # Distributed under the terms of the MIT license.
 #
+"""Base for terminal user interfaces."""
+
 from __future__ import annotations

 import getpass
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 603010c..bbaad39 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1,4 +1,9 @@
 #!/usr/bin/env python3
+#
+# (C) Pywikibot team, 2003-2026
+#
+# Distributed under the terms of the MIT license.
+#
 """Script to check language links for general pages.

 Uses existing translations of a page, plus hints from the command line,
@@ -349,11 +354,7 @@
    The ``-localonly`` option now restricts page processing to the
    default site only, instead of the origin page.
 """
-#
-# (C) Pywikibot team, 2003-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
 from __future__ import annotations

 import os

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