jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237542?usp=email )
Change subject: Move copyright headers above module docstrings
......................................................................
Move copyright headers above module docstrings
Bug: T416673
Change-Id: I0e5e62f0ff3c225010c266ccbb80f0a09720a7b5
---
M pywikibot/comms/http.py
M pywikibot/data/api/_requests.py
M pywikibot/logentries.py
M pywikibot/time.py
M pywikibot/version.py
M tests/__init__.py
M tests/api_tests.py
M tests/pwb_tests.py
8 files changed, 22 insertions(+), 15 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index a972e1a..4740e03 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -1,3 +1,8 @@
+#
+# (C) Pywikibot team, 2007-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Basic HTTP access interface.
This module handles communication between the bot and the HTTP threads.
@@ -24,11 +29,7 @@
.. versionchanged:: 8.0
Cookies are lazy loaded when logging to site.
"""
-#
-# (C) Pywikibot team, 2007-2026
-#
-# Distributed under the terms of the MIT license.
-#
+
from __future__ import annotations
import atexit
diff --git a/pywikibot/data/api/_requests.py b/pywikibot/data/api/_requests.py
index 7891757..6b84778 100644
--- a/pywikibot/data/api/_requests.py
+++ b/pywikibot/data/api/_requests.py
@@ -1,9 +1,10 @@
-"""Objects representing API requests."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Objects representing API requests."""
+
from __future__ import annotations
import datetime
diff --git a/pywikibot/logentries.py b/pywikibot/logentries.py
index 14f9dfd..11f3569 100644
--- a/pywikibot/logentries.py
+++ b/pywikibot/logentries.py
@@ -1,9 +1,10 @@
-"""Objects representing MediaWiki log entries."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Objects representing MediaWiki log entries."""
+
from __future__ import annotations
import datetime
diff --git a/pywikibot/time.py b/pywikibot/time.py
index 73576b3..33c30ac 100644
--- a/pywikibot/time.py
+++ b/pywikibot/time.py
@@ -1,12 +1,12 @@
-"""Time handling module.
-
-.. versionadded:: 7.5
-"""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Time handling module.
+
+.. versionadded:: 7.5
+"""
from __future__ import annotations
import datetime
diff --git a/pywikibot/version.py b/pywikibot/version.py
index b3fdf6b..864e5d3 100644
--- a/pywikibot/version.py
+++ b/pywikibot/version.py
@@ -1,9 +1,10 @@
-"""Module to determine the pywikibot version (tag, revision and date)."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Module to determine the pywikibot version (tag, revision and date)."""
+
from __future__ import annotations
import datetime
diff --git a/tests/__init__.py b/tests/__init__.py
index 56ba876..ee4966b 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,9 +1,10 @@
-"""Package tests."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Package tests."""
+
from __future__ import annotations
diff --git a/tests/api_tests.py b/tests/api_tests.py
index 57a1324..ff25a67 100755
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
-"""API test module."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""API test module."""
+
from __future__ import annotations
import datetime
diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py
index 7520159..7db0e34 100755
--- a/tests/pwb_tests.py
+++ b/tests/pwb_tests.py
@@ -1,10 +1,11 @@
#!/usr/bin/env python3
-"""Test pwb.py."""
#
# (C) Pywikibot team, 2007-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test pwb.py."""
+
from __future__ import annotations
import io
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237542?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: I0e5e62f0ff3c225010c266ccbb80f0a09720a7b5
Gerrit-Change-Number: 1237542
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]