forked from wikimedia/pywikibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] Bot class arguments for constructor
Bot class arguments for constructor should be called as keyword argument Bot class handles 'site' and ' always' as keyword arguments. In replace.py instantiating the bot uses postional argument which breaks this rule and derived bots may be break if not all (positional) arguments are given. - instantiate ReplaceRobot with keyword arguments for 'always' and 'site' handled by bot class to allow other bots to use this special bot. - catch them with **kwargs - remove unused and deprecated acceptall variable - change parameter description for ReplaceRobot constructor, markup for epydoc - move __init__ doc to class because doc strings of hidden methods aren't shown in epydoc's documentation. - this also solves the 2nd warning issue of https://gerrit.wikimedia.org/r/#/c/266321/ Bug: T125046 Bug: T125049 Change-Id: I23570783fda9f497a6f57aaa8f5e17895534af50
- Loading branch information
Showing
1 changed file
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters