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):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/795260
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: Ia5cb732ade869b55a0b5cfd33982a8747458a02f
Gerrit-Change-Number: 795260
Gerrit-PatchSet: 2
Gerrit-Owner: DannyS712 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to