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

Change subject: [bugfix] Fix LexemePage doctest
......................................................................

[bugfix] Fix LexemePage doctest

Bug: T370168
Change-Id: I87ee013970588032faae1ad7c8830a92a0135070
---
M pywikibot/page/_wikibase.py
1 file changed, 4 insertions(+), 4 deletions(-)

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




diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index ce827ab..b00e5ce 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -2138,17 +2138,17 @@
     >>> import pywikibot
     >>> repo = pywikibot.Site('wikidata')
     >>> L2 = pywikibot.LexemePage(repo, 'L2')  # create a Lexeme page
-    >>> list(L2.claims.keys())  # access the claims
-    ['P5402', 'P5831']
+    >>> list(L2.claims)  # access the claims
+    ['P5402', 'P5831', 'P12690']
     >>> len(L2.forms)  # access the forms
     2
     >>> F1 = L2.forms[0]  # access the first form
-    >>> list(F1.claims.keys())  # access its claims
+    >>> list(F1.claims)  # access its claims
     ['P898']
     >>> len(L2.senses)  # access the senses
     1
     >>> S1 = L2.senses[0]  # access the first sense
-    >>> list(S1.claims.keys())  # and its claims
+    >>> list(S1.claims)  # and its claims
     ['P5137', 'P5972', 'P2888']
     """


--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1054586?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: I87ee013970588032faae1ad7c8830a92a0135070
Gerrit-Change-Number: 1054586
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <i...@gno.de>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- pywikibot-commits@lists.wikimedia.org
To unsubscribe send an email to pywikibot-commits-le...@lists.wikimedia.org

Reply via email to