jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238717?usp=email )
Change subject: Move copyright headers above module docstrings
......................................................................
Move copyright headers above module docstrings
Bug: T416673
Change-Id: Ia29b75be7e5f4378bc090d85716a68028e45a3a1
---
M pywikibot/data/api/_optionset.py
M pywikibot/data/memento.py
M pywikibot/tools/chars.py
M tests/basepage.py
M tests/bot_tests.py
M tests/category_bot_tests.py
M tests/cosmetic_changes_tests.py
M tests/edit_tests.py
M tests/interwiki_graph_tests.py
M tests/interwikidata_tests.py
M tests/logentries_tests.py
M tests/memento_tests.py
M tests/oauth_tests.py
M tests/paraminfo_tests.py
M tests/patrolbot_tests.py
M tests/proofreadpage_tests.py
M tests/token_tests.py
M tests/tools_tests.py
18 files changed, 44 insertions(+), 44 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/data/api/_optionset.py b/pywikibot/data/api/_optionset.py
index e401db8..3583447 100644
--- a/pywikibot/data/api/_optionset.py
+++ b/pywikibot/data/api/_optionset.py
@@ -1,9 +1,9 @@
-"""Object representing boolean API option."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Object representing boolean API option."""
from __future__ import annotations
from collections.abc import MutableMapping
diff --git a/pywikibot/data/memento.py b/pywikibot/data/memento.py
index 83784cc..13600a0 100644
--- a/pywikibot/data/memento.py
+++ b/pywikibot/data/memento.py
@@ -1,3 +1,13 @@
+#
+# (C) Shawn M. Jones, Harihar Shankar, Herbert Van de Sompel.
+# -- Los Alamos National Laboratory, 2013
+# Parts of MementoClient class codes are
+# licensed under the BSD open source software license.
+#
+# (C) Pywikibot team, 2015-2026
+#
+# Distributed under the terms of the MIT license.
+#
"""Fix ups for memento-client package version 0.6.1.
.. versionadded:: 7.4
@@ -5,16 +15,6 @@
Set default timegate to :attr:`DEFAULT_TIMEGATE_BASE_URI`
.. seealso:: https://github.com/mementoweb/py-memento-client#readme
"""
-#
-# (C) Shawn M. Jones, Harihar Shankar, Herbert Van de Sompel.
-# -- Los Alamos National Laboratory, 2013
-# Parts of MementoClient class codes are
-# licensed under the BSD open source software license.
-#
-# (C) Pywikibot team, 2015-2025
-#
-# Distributed under the terms of the MIT license.
-#
from __future__ import annotations
from datetime import datetime
diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py
index c4a9d87..9691b01 100644
--- a/pywikibot/tools/chars.py
+++ b/pywikibot/tools/chars.py
@@ -1,9 +1,9 @@
-"""Character based helper functions (not wiki-dependent)."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Character based helper functions (not wiki-dependent)."""
from __future__ import annotations
import re
diff --git a/tests/basepage.py b/tests/basepage.py
index a611768..24c5ff4 100644
--- a/tests/basepage.py
+++ b/tests/basepage.py
@@ -1,9 +1,9 @@
-"""BasePage tests subclasses."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""BasePage tests subclasses."""
from __future__ import annotations
from abc import ABCMeta, abstractmethod
diff --git a/tests/bot_tests.py b/tests/bot_tests.py
index ef53c57..a38665a 100755
--- a/tests/bot_tests.py
+++ b/tests/bot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Bot tests."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Bot tests."""
from __future__ import annotations
import sys
diff --git a/tests/category_bot_tests.py b/tests/category_bot_tests.py
index 79cc1d0..c73502c 100755
--- a/tests/category_bot_tests.py
+++ b/tests/category_bot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the category bot script."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the category bot script."""
from __future__ import annotations
import unittest
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py
index bd39792..6b9c2f9 100755
--- a/tests/cosmetic_changes_tests.py
+++ b/tests/cosmetic_changes_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test cosmetic_changes module."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test cosmetic_changes module."""
from __future__ import annotations
import unittest
diff --git a/tests/edit_tests.py b/tests/edit_tests.py
index 7fcd1d1..6fa004f 100755
--- a/tests/edit_tests.py
+++ b/tests/edit_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for editing pages."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for editing pages."""
from __future__ import annotations
import time
diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py
index eeb9cdb..7867c73 100755
--- a/tests/interwiki_graph_tests.py
+++ b/tests/interwiki_graph_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test Interwiki Graph functionality."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test Interwiki Graph functionality."""
from __future__ import annotations
import unittest
diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py
index 059064f..70356fe 100755
--- a/tests/interwikidata_tests.py
+++ b/tests/interwikidata_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for scripts/interwikidata.py."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for scripts/interwikidata.py."""
from __future__ import annotations
import unittest
diff --git a/tests/logentries_tests.py b/tests/logentries_tests.py
index e62f9ad..4f5cf15 100755
--- a/tests/logentries_tests.py
+++ b/tests/logentries_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test :mod:`logentries` module."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test :mod:`logentries` module."""
from __future__ import annotations
import datetime
diff --git a/tests/memento_tests.py b/tests/memento_tests.py
index f5d5269..e443696 100755
--- a/tests/memento_tests.py
+++ b/tests/memento_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Memento client test module."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Memento client test module."""
from __future__ import annotations
import unittest
diff --git a/tests/oauth_tests.py b/tests/oauth_tests.py
index 20a3fdb..0999dd9 100755
--- a/tests/oauth_tests.py
+++ b/tests/oauth_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test OAuth functionality."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test OAuth functionality."""
from __future__ import annotations
import os
diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py
index 388c036..564f358 100755
--- a/tests/paraminfo_tests.py
+++ b/tests/paraminfo_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Test confirming paraminfo contains expected values."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Test confirming paraminfo contains expected values."""
from __future__ import annotations
from pywikibot.family import WikimediaFamily
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
index 12bfa03..5888f45 100755
--- a/tests/patrolbot_tests.py
+++ b/tests/patrolbot_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the patrol script."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the patrol script."""
from __future__ import annotations
import unittest
diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py
index cad13bc..c7518e2 100755
--- a/tests/proofreadpage_tests.py
+++ b/tests/proofreadpage_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for the proofreadpage module."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for the proofreadpage module."""
from __future__ import annotations
import difflib
diff --git a/tests/token_tests.py b/tests/token_tests.py
index 7ec8786..ff5ba8c 100755
--- a/tests/token_tests.py
+++ b/tests/token_tests.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""Tests for tokens."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
#
+"""Tests for tokens."""
from __future__ import annotations
import unittest
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
index 533ee25..7ed8bb5 100755
--- a/tests/tools_tests.py
+++ b/tests/tools_tests.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
-"""Test tools package alone which don't fit into other tests."""
#
-# (C) Pywikibot team, 2015-2025
+# (C) Pywikibot team, 2015-2026
#
# Distributed under the terms of the MIT license.
+"""Test tools package alone which don't fit into other tests."""
from __future__ import annotations
import decimal
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1238717?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: Ia29b75be7e5f4378bc090d85716a68028e45a3a1
Gerrit-Change-Number: 1238717
Gerrit-PatchSet: 5
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]