jenkins-bot merged this change.
[bugfix] Create APISite object through pywikibot.Site wrapper
Site function caches created sites in global _sites
Bug: T226157
Change-Id: Ie4e529aedd830dea894e08f0f9e50f6bc1080183
---
M pywikibot/site.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pywikibot/site.py b/pywikibot/site.py
index bef3935..24049dc 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -1885,7 +1885,7 @@
if site['dbname'] == dbname:
if site['code'] == 'wiki':
site['code'] = 'wikipedia'
- return cls(lang, site['code'])
+ return pywikibot.Site(lang, site['code'])
else: # key == 'specials'
for site in val:
if site['dbname'] == dbname:
To view, visit change 518025. To unsubscribe, or for help writing mail filters, visit settings.