jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795260 )
Change subject: Fix explanation of basesite __hash__() return ......................................................................
Fix explanation of basesite __hash__() return
It returns the hashed value, not a hashable key
Change-Id: Ia5cb732ade869b55a0b5cfd33982a8747458a02f --- M pywikibot/site/_basesite.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py index 1bcc7f7..80dacc7 100644 --- a/pywikibot/site/_basesite.py +++ b/pywikibot/site/_basesite.py @@ -215,7 +215,7 @@ self.__class__.__name__, self.code, self.family)
def __hash__(self): - """Return hashable key.""" + """Return hash value of instance.""" return hash(repr(self))
def languages(self):
pywikibot-commits@lists.wikimedia.org