jenkins-bot submitted this change.
[IMPR] use userinfo deleter to delete APISite._userinfo
Change-Id: Ibc9c629096caba03884828e99fd7d1155af5c3e9
---
M pywikibot/site/__init__.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pywikibot/site/__init__.py b/pywikibot/site/__init__.py
index 98b12a7..cd77fdc 100644
--- a/pywikibot/site/__init__.py
+++ b/pywikibot/site/__init__.py
@@ -399,7 +399,7 @@
the internal login state does not match the state we receive
from the site.
"""
- del self._userinfo
+ del self.userinfo
self._loginstatus = _LoginStatus.NOT_LOGGED_IN
self.login()
@@ -423,7 +423,7 @@
self._loginstatus = _LoginStatus.NOT_LOGGED_IN
# Reset tokens and user properties
- del self._userinfo
+ del self.userinfo
self.tokens = TokenWallet(self)
self._paraminfo = api.ParamInfo(self)
To view, visit change 660423. To unsubscribe, or for help writing mail filters, visit settings.