jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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 change 650090. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0fc8df56695bd9633d615d050718c52753eda0f7
Gerrit-Change-Number: 650090
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged