Wikimedia

Pywkibot: (Re)move unused code reported by Vulture (III)

Pywikibot is a Python-based framework to write bots for MediaWiki (more information).

There are some code pieces that are not used by Pywikibot and a quick scan with vulture creates the output below;

$ python -m vulture ./ --min-confidence 61
pywikibot/family.py:1419: unused variable 'transcluded' (100% confidence)
pywikibot/login.py:185: unused variable 'remember' (100% confidence)
pywikibot/page.py:1853: unused variable 'safe' (100% confidence)
pywikibot/pagegenerators.py:2636: unreachable code after 'raise' (100% confidence)

Setup Pywikibot locally and remove these unused codes. It will be also useful to recheck this report with vulture and also before making a patch, run unit tests to make sure no regressions have been introduced.

Acceptance Criteria

Task tags

  • python
  • cleanup
  • vulture
  • pywikibot

Students who completed this task

zD/Zd1LqRH

Task type

  • code Code
  • done_all Quality Assurance
close

2018