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()
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/650090
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0fc8df56695bd9633d615d050718c52753eda0f7
Gerrit-Change-Number: 650090
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged