jenkins-bot submitted this change.
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(-)
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 change 795260. To unsubscribe, or for help writing mail filters, visit settings.