jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/566016 )
Change subject: [flake8] Fix C407 flake8 issue ......................................................................
[flake8] Fix C407 flake8 issue
use a generator instead a list inside filter
Change-Id: Ie174ca5f8acdae59f98a70df860b24b7f414d53c --- M pywikibot/site_detect.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site_detect.py b/pywikibot/site_detect.py index 71567e6..f7063a0 100644 --- a/pywikibot/site_detect.py +++ b/pywikibot/site_detect.py @@ -154,8 +154,8 @@
self.version = list(filter( lambda x: x.startswith('MediaWiki'), - [l.strip() - for l in d['error']['*'].split('\n')]))[0].split()[1] + (l.strip() + for l in d['error']['*'].split('\n'))))[0].split()[1] except Exception: pass else:
pywikibot-commits@lists.wikimedia.org