Wikimedia

Pywikibot: Fix W504 issues across python scripts (XI)

Pywikibot is a Python library and collection of scripts that automate work on MediaWiki sites. This task will mainly be to fix W504 errors (line break after binary operator) found in the Pywikibot repository.

Clone Pywikibot from Wikimedia Gerrit: https://gerrit.wikimedia.org/g/pywikibot/core/+/refs/heads/master. Follow steps in the README.rst.

See full task description here: https://phabricator.wikimedia.org/T207836.

Below are the errors you're to fix;

./pywikibot/login.py:271:21: W504 line break after binary operator
./pywikibot/login.py:272:21: W504 line break after binary operator
./pywikibot/cosmetic_changes.py:627:46: W504 line break after binary operator
./pywikibot/cosmetic_changes.py:672:27: W504 line break after binary operator
./pywikibot/cosmetic_changes.py:713:13: W504 line break after binary operator
./pywikibot/cosmetic_changes.py:954:25: W504 line break after binary operator
./pywikibot/pagegenerators.py:521:17: W504 line break after binary operator
./pywikibot/pagegenerators.py:522:17: W504 line break after binary operator
./pywikibot/pagegenerators.py:523:17: W504 line break after binary operator
./pywikibot/pagegenerators.py:524:17: W504 line break after binary operator
./pywikibot/pagegenerators.py:525:17: W504 line break after binary operator
./pywikibot/pagegenerators.py:526:21: W504 line break after binary operator

Task tags

  • python
  • python-pep8
  • pywikibot

Students who completed this task

Nathan

Task type

  • code Code
  • done_all Quality Assurance
close

2018