jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/650090 )
Change subject: [bugfix] AutoFamily: type and object must be given for super call ......................................................................
[bugfix] AutoFamily: type and object must be given for super call
Bug: T270370 Change-Id: I0fc8df56695bd9633d615d050718c52753eda0f7 --- M pywikibot/family.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/family.py b/pywikibot/family.py index f6115c9..9b1574f 100644 --- a/pywikibot/family.py +++ b/pywikibot/family.py @@ -1398,7 +1398,8 @@ return self.url.path[0:-8]
# AutoFamily refers to the variable set below, not the function - return super().scriptpath(code) + # but the reference must be given here + return super(AutoFamily, self).scriptpath(code)
AutoFamily = type('AutoFamily', (SingleSiteFamily,), locals()) return AutoFamily()
pywikibot-commits@lists.wikimedia.org