jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/425463 )
Change subject: [bugfix] create site attribute first ......................................................................
[bugfix] create site attribute first
Bug: T191949 Change-Id: I7fac15af1cd6284afb6929854c8fd661b21532fc --- M scripts/editarticle.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/editarticle.py b/scripts/editarticle.py index 938bde2..e44c0b1 100755 --- a/scripts/editarticle.py +++ b/scripts/editarticle.py @@ -52,8 +52,8 @@ def __init__(self, *args): """Constructor.""" self.set_options(*args) - self.setpage() self.site = pywikibot.Site() + self.setpage()
def set_options(self, *args): """Parse commandline and set options attribute."""
pywikibot-commits@lists.wikimedia.org