site arguments are handled by Bot class as keyword argument in constructor. It could set a default site if that argument is missing or the actual value is None. Instantiating ReplaceRobot breaks this rule and site argument always must be given. See https://gerrit.wikimedia.org/r/#/c/266321/ PS1
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
[bugfix] Bot class arguments for constructor | pywikibot/core | master | +51 -47 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Xqt | T125049 Bot's site arguments for constructor should be called as keyword argument, not positional | |||
Resolved | Xqt | T125046 Do not set Bot._site to None if we already have a site object |
Event Timeline
Comment Actions
Change 266998 had a related patch set uploaded (by Xqt):
[BREAK][bugfix] Bot class arguments for constructor