Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795259 )
Change subject: apisite: remove TODO about implementing undelete, long since done
......................................................................
apisite: remove TODO about implementing undelete, long since done
Undelete was implemented back in 2014, but the todo was never
removed
Follow-up to I1eb2c158f6450bf7b4e9c3f26c83bb7674b9f766
Change-Id: Iaa99b5d7254cd2d226e051dadff2ab2799db9606
---
M pywikibot/site/_apisite.py
1 file changed, 0 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 1768333..25929af 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -2481,8 +2481,6 @@
finally:
self.unlock_page(page)
- # TODO: implement undelete
-
@need_right('block')
def blockuser(
self,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795259
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Iaa99b5d7254cd2d226e051dadff2ab2799db9606
Gerrit-Change-Number: 795259
Gerrit-PatchSet: 3
Gerrit-Owner: DannyS712 <dannys712.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795374 )
Change subject: Fix doc in APISite.blockuser
......................................................................
Fix doc in APISite.blockuser
Bug: T100521
Change-Id: I10aad5f2311d562616b6f3ca4f63b0f9565908ac
---
M pywikibot/site/_apisite.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
DannyS712: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py
index 1d6e174..1768333 100644
--- a/pywikibot/site/_apisite.py
+++ b/pywikibot/site/_apisite.py
@@ -2499,7 +2499,7 @@
"""
Block a user for certain amount of time and for a certain reason.
- .. seealso:: :api:`Block
+ .. seealso:: :api:`Block`
:param user: The username/IP to be blocked without a namespace.
:param expiry: The length or date/time when the block expires. If
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795374
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I10aad5f2311d562616b6f3ca4f63b0f9565908ac
Gerrit-Change-Number: 795374
Gerrit-PatchSet: 2
Gerrit-Owner: Hongsy <hongsy2006+wikimedia(a)gmail.com>
Gerrit-Reviewer: DannyS712 <dannys712.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/794791 )
Change subject: [IMPR] Improve pywikibot.Site() documentation
......................................................................
[IMPR] Improve pywikibot.Site() documentation
Change-Id: I04eafbae47cd32bb34a9eabbc5084bf9acaae4bb
---
M pywikibot/__init__.py
1 file changed, 6 insertions(+), 6 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 1df2fb1..e6231e6 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -1132,8 +1132,8 @@
site = pywikibot.Site('wikisource:fr')
- :Note: An already created site is cached an a new variable points to
- the same object if interface, family, code and user are equal:
+ .. note:: An already created site is cached an a new variable points
+ to the same object if interface, family, code and user are equal:
>>> import pywikibot
>>> site_1 = pywikibot.Site('wikisource:fr')
@@ -1143,11 +1143,11 @@
>>> site_1
APISite("fr", "wikisource")
- ``APISite`` is the default interface. Refer :py:obj:`pywikibot.site` for
- other interface types.
+ :class:`APISite<pywikibot.site._apisite.APISite>` is the default
+ interface. Refer :py:obj:`pywikibot.site` for other interface types.
- **Never create a site object via interface class directly.**
- Always use this factory method.
+ .. warning:: Never create a site object via interface class directly.
+ Always use this factory method.
.. versionchanged:: 7.3
Short creation if site code is equal to family name like
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/794791
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I04eafbae47cd32bb34a9eabbc5084bf9acaae4bb
Gerrit-Change-Number: 794791
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/794478 )
Change subject: [fix] Fix spelling mistakes
......................................................................
[fix] Fix spelling mistakes
Change-Id: I16dcac2012a1246b2808070daf2544c31552ee9d
---
M scripts/README.rst
M scripts/replace.py
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
DannyS712: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/README.rst b/scripts/README.rst
index 113ab36..1253758 100644
--- a/scripts/README.rst
+++ b/scripts/README.rst
@@ -165,7 +165,7 @@
| make_i18n_dict.py | Generate an i18n file from a given script. |
+------------------------+---------------------------------------------------------+
| preload_sites.py | Preload and cache site information for each WikiMedia |
- | | family. Usefull for bots running on multiple sites. |
+ | | family. Useful for bots running on multiple sites. |
+------------------------+---------------------------------------------------------+
| sorting_order.py | Updates interwiki sorting order in family.py file. |
+------------------------+---------------------------------------------------------+
diff --git a/scripts/replace.py b/scripts/replace.py
index d421283..3e932e8 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -93,7 +93,7 @@
-quiet Don't prompt a message if a page keeps unchanged
--nopreload Do not preload pages. Usefull if disabled on a wiki.
+-nopreload Do not preload pages. Useful if disabled on a wiki.
-recursive Recurse replacement as long as possible. Be careful, this
might lead to an infinite loop.
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/794478
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I16dcac2012a1246b2808070daf2544c31552ee9d
Gerrit-Change-Number: 794478
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: DannyS712 <dannys712.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged