jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/509061 )
Change subject: use "streams" instead of "stream" for creating EventStreams instance ......................................................................
use "streams" instead of "stream" for creating EventStreams instance
EventStreams can have multiple streams. Therefore the parameter "stream" was renamed to "streams" and "stream" is deprecated.
Replace the parameter in site_rc_listener
Change-Id: I49d9b5134824411a4cb02a45166725b40244d4ad --- M pywikibot/comms/eventstreams.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/comms/eventstreams.py b/pywikibot/comms/eventstreams.py index 710bebd..690b4d7 100644 --- a/pywikibot/comms/eventstreams.py +++ b/pywikibot/comms/eventstreams.py @@ -344,7 +344,7 @@ raise ImportError('sseclient is required for EventStreams;\n' 'install it with "pip install sseclient"\n')
- stream = EventStreams(stream='recentchange', site=site) + stream = EventStreams(streams='recentchange', site=site) stream.set_maximum_items(total) stream.register_filter(server_name=site.hostname()) return stream
pywikibot-commits@lists.wikimedia.org