jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/507325 )
Change subject: [cleanup] remove pylint directives ......................................................................
[cleanup] remove pylint directives
We use pyflakes instead of pylint. Therefore we can remove pylint directives.
Change-Id: Ieef8191658e224cfcc3315f8ba681bbe85579b57 --- M pywikibot/version.py M scripts/archive/featured.py M scripts/archivebot.py M scripts/commonscat.py M scripts/script_wui.py 5 files changed, 9 insertions(+), 10 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/version.py b/pywikibot/version.py index ac0dcd4..a2af1aa 100644 --- a/pywikibot/version.py +++ b/pywikibot/version.py @@ -363,7 +363,7 @@ return (tag, rev, date, hsh)
-def getversion_package(path=None): # pylint: disable=unused-argument +def getversion_package(path=None): """Get version info for an installed package.
@param path: Unused argument diff --git a/scripts/archive/featured.py b/scripts/archive/featured.py index 25c8165..68dae86 100755 --- a/scripts/archive/featured.py +++ b/scripts/archive/featured.py @@ -88,7 +88,7 @@ yield article
-def BACK(site, name, hide): # pylint: disable=unused-argument +def BACK(site, name, hide): p = pywikibot.Page(site, name, ns=10) return [page for page in p.getReferences(follow_redirects=False, only_template_inclusion=True)] @@ -111,7 +111,7 @@
# not implemented yet -def TMPL(site, name, hide): # pylint: disable=unused-argument +def TMPL(site, name, hide): return
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index b6f9187..ca998b2 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -309,15 +309,15 @@
"""Class building a UTC tzinfo object."""
- def utcoffset(self, dt): # pylint: disable=unused-argument + def utcoffset(self, dt): """Subclass implementation, return timedelta(0).""" return ZERO
- def tzname(self, dt): # pylint: disable=unused-argument + def tzname(self, dt): """Subclass implementation.""" return 'UTC'
- def dst(self, dt): # pylint: disable=unused-argument + def dst(self, dt): """Subclass implementation, return timedelta(0).""" return ZERO
diff --git a/scripts/commonscat.py b/scripts/commonscat.py index 032181c..9d9a068 100755 --- a/scripts/commonscat.py +++ b/scripts/commonscat.py @@ -52,8 +52,8 @@ # November 2013 # # (C) Multichill, 2008-2009 -# (C) Xqt, 2009-2018 -# (C) Pywikibot team, 2008-2018 +# (C) Xqt, 2009-2019 +# (C) Pywikibot team, 2008-2019 # # Distributed under the terms of the MIT license. # @@ -348,7 +348,7 @@ def changeCommonscat( self, page=None, oldtemplate='', oldcat='', newtemplate='', newcat='', linktitle='', - description=NotImplemented): # pylint: disable=unused-argument + description=NotImplemented): """Change the current commonscat template and target.""" if oldcat == '3=S' or linktitle == '3=S': return # TODO: handle additional param on de-wiki diff --git a/scripts/script_wui.py b/scripts/script_wui.py index 9ab4db0..1605903 100755 --- a/scripts/script_wui.py +++ b/scripts/script_wui.py @@ -234,7 +234,6 @@
# Define a function for the thread
-# pylint: disable=unused-argument def main_script(page, rev=None, params=NotImplemented): """Main thread.""" # http://opensourcehacker.com/2011/02/23/temporarily-capturing-python-logging-...
pywikibot-commits@lists.wikimedia.org