jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix LexemePage doctest

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

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 change 1054586. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I87ee013970588032faae1ad7c8830a92a0135070
Gerrit-Change-Number: 1054586
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot