jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] ParamInfo: Correct read generators from help
......................................................................
[FIX] ParamInfo: Correct read generators from help
Interpreting the help text in d0485f71 was done incorrectly for the
query generators as it must have been a parameter allowing multiple
values.
Change-Id: I31f23977c571bf3fe554f01dbf10e348a0d1d894
---
M pywikibot/data/api.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py
index 7946767..0ad45c8 100644
--- a/pywikibot/data/api.py
+++ b/pywikibot/data/api.py
@@ -363,8 +363,8 @@
meta_modules = help_text[start:end].split(', ')
start = help_text.find('Use the output of a list as the input')
- start = help_text.find(query_help_list_prefix, start)
- start += len(query_help_list_prefix)
+ start = help_text.find('One value: ', start)
+ start += len('One value: ')
end = help_text.find('\n', start)
gen_modules = help_text[start:end].split(', ')
--
To view, visit
https://gerrit.wikimedia.org/r/199853
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I31f23977c571bf3fe554f01dbf10e348a0d1d894
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: jenkins-bot <>