jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/617856 )
Change subject: [bugfix] Read correct object in normalizeData
......................................................................
[bugfix] Read correct object in normalizeData
Obviously, we need to read the JSON because
its structure is enforced by _extract_JSON.
Bug: T259426
Change-Id: I9af79c83db288874b734e9fd63c4c32427978aa5
---
M pywikibot/page/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 78d559c..f36513e 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -3921,7 +3921,7 @@
raise ValueError(
"Couldn't determine the site and title of the value:
"
'{!r}'.format(json))
- db_name = obj['site']
+ db_name = json['site']
norm_data[db_name] = json
return norm_data
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/617856
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: I9af79c83db288874b734e9fd63c4c32427978aa5
Gerrit-Change-Number: 617856
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Urbanecm <martin.urbanec(a)wikimedia.cz>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged