Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328300?usp=email )

Change subject: Fix BasePage.exists documentation
......................................................................

Fix BasePage.exists documentation

Clarify that page sections are ignored when checking whether the
underlying page exists.

Bug: T334341
Change-Id: Ic37c899560ab92e325543e6b6afc608759f1d012
---
M pywikibot/page/_basepage.py
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/pywikibot/page/_basepage.py b/pywikibot/page/_basepage.py
index 547c4d0..0d55cb4 100644
--- a/pywikibot/page/_basepage.py
+++ b/pywikibot/page/_basepage.py
@@ -972,8 +972,7 @@
     def exists(self) -> bool:
         """Return True if page exists on the wiki, even if it's a redirect.

-        If the title includes a section, return False if this section
-        isn't found.
+        A section in the title is ignored.
         """
         with suppress(AttributeError):
             return self.pageid > 0

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1328300?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: Ic37c899560ab92e325543e6b6afc608759f1d012
Gerrit-Change-Number: 1328300
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[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