jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770145 )
Change subject: [fix] apisite: BaseSite.username() is callable ......................................................................
[fix] apisite: BaseSite.username() is callable
Change-Id: I5c4cb3008eb50b92f097efebe6608041ae338dd0 --- M pywikibot/site/_apisite.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site/_apisite.py b/pywikibot/site/_apisite.py index 8eba59a..c5df593 100644 --- a/pywikibot/site/_apisite.py +++ b/pywikibot/site/_apisite.py @@ -512,7 +512,7 @@ :raises TypeError: Inappropriate argument type of 'user' """ if user is None: - user = self.username + user = self.username() param = {} elif isinstance(user, str): param = {'guiuser': user} @@ -558,7 +558,7 @@ ..versionadded:: 7.0 """ with suppress(KeyError): - del self._globaluserinfo[self.username] + del self._globaluserinfo[self.username()]
def is_blocked(self, force: bool = False) -> bool: """Return True when logged in user is blocked.
pywikibot-commits@lists.wikimedia.org