jenkins-bot has submitted this change and it was merged.
Change subject: Dont pass None as api param value ......................................................................
Dont pass None as api param value
Change-Id: I43cb53e4c61182031ef25a14589cd10b1f799bbd --- M pywikibot/data/api.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve XZise: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 741a75b..7f4210e 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -996,8 +996,8 @@ value = values[0] if value is True: values = [''] - elif value is False: - # False booleans are not in the http URI + elif value is False or value is None: + # False and None are not included in the http URI continue iterator = iter(values) value = u'|'.join(self._format_value(value) for value in iterator)
pywikibot-commits@lists.wikimedia.org