jenkins-bot has submitted this change and it was merged.
Change subject: [IMPR] remove unnecessary gen.set_query_increment(50) setting
......................................................................
[IMPR] remove unnecessary gen.set_query_increment(50) setting
APIGenerator.query_increment is set to 50 in constructor.
It is superfluous to set this value again.
Change-Id: Idfdd57683a6f922637daa80764390130f5110a39
---
M pywikibot/site.py
1 file changed, 0 insertions(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
XZise: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 4e87cb6..ecda3e6 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -6532,7 +6532,6 @@
gen = api.APIGenerator('wbsearchentities', data_name='search',
search=search, language=language, **kwargs)
- gen.set_query_increment(50)
if limit is not None:
gen.set_maximum_items(limit)
return gen
--
To view, visit https://gerrit.wikimedia.org/r/231901
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idfdd57683a6f922637daa80764390130f5110a39
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] config2: Use list for _DifferentTypeError
......................................................................
[FIX] config2: Use list for _DifferentTypeError
In 32a6d0aa the _DifferentTypeError was introduced which additionally shows
the valid types for a variable. The valid types need to be supplied via a list
as it otherwise tries to iterate over a type.
Change-Id: I8f1f7a6fa93e097fbcf41bbe0f285c1ba950d425
---
M pywikibot/config2.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index b103010..b8898fd 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -964,7 +964,7 @@
elif isinstance(value, int) and isinstance(default_value, float):
return float(value)
else:
- raise _DifferentTypeError(name, type(value), type(default_value))
+ raise _DifferentTypeError(name, type(value), [type(default_value)])
def _assert_types(name, value, types):
--
To view, visit https://gerrit.wikimedia.org/r/232289
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8f1f7a6fa93e097fbcf41bbe0f285c1ba950d425
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: jenkins-bot <>