jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
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(-)

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

To view, visit change 509061. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I49d9b5134824411a4cb02a45166725b40244d4ad
Gerrit-Change-Number: 509061
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)