jenkins-bot has submitted this change and it was merged.
Change subject: fix some pyflakes errors ......................................................................
fix some pyflakes errors
pywikibot/site.py:774: local variable 'uidata' is assigned to but never used pywikibot/site.py:955: local variable 'v' is assigned to but never used scripts/unlink.py:37: 'config' imported but unused
Change-Id: I883a931248ab0ed52f99a0dad4e191e4b266a016 --- M pywikibot/site.py M scripts/unlink.py 2 files changed, 2 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 3d3f2cf..8d9faeb 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -771,7 +771,7 @@
def logout(self): uirequest = api.Request(site=self, action="logout") - uidata = uirequest.submit() + uirequest.submit() self._loginstatus = LoginStatus.NOT_LOGGED_IN if hasattr(self, "_userinfo"): del self._userinfo @@ -952,7 +952,7 @@
""" try: - v = self.mediawiki_messages(keys) + self.mediawiki_messages(keys) return True except KeyError: return False diff --git a/scripts/unlink.py b/scripts/unlink.py index 43f6723..f481f24 100755 --- a/scripts/unlink.py +++ b/scripts/unlink.py @@ -34,7 +34,6 @@ from pywikibot import pagegenerators from pywikibot.editor import TextEditor from pywikibot import i18n -from pywikibot import config
class UnlinkBot: