jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[cleanup] Remove deprecated/not implemented rcstream methods

rcstream support was removed with 3.0.20171212 in favour of eventstreams.
The old path methods are obsolete.
- remove rcstream* methods from Family
- remove rcstream_host from WikimediaFamily

Change-Id: I5b5c93cc6b1fe5a6b3554d160ac50522ab8e550d
---
M pywikibot/family.py
1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/pywikibot/family.py b/pywikibot/family.py
index 9eeccc6..abe13db 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Objects representing MediaWiki families."""
#
-# (C) Pywikibot team, 2004-2019
+# (C) Pywikibot team, 2004-2020
#
# Distributed under the terms of the MIT license.
#
@@ -1217,18 +1217,6 @@
"""DEPRECATED: Return nice path prefix, e.g. '/wiki/'."""
return '/wiki/'

- def rcstream_host(self, code):
- """Hostname for RCStream."""
- raise NotImplementedError('This family does not support RCStream')
-
- def rcstream_path(self, code):
- """Return path for RCStream."""
- raise NotImplementedError('This family does not support RCStream')
-
- def rcstream_port(self, code):
- """Return port for RCStream."""
- raise NotImplementedError('This family does not support RCStream')
-
def eventstreams_host(self, code):
"""Hostname for EventStreams."""
raise NotImplementedError('This family does not support EventStreams')
@@ -1741,11 +1729,6 @@
"""Return 'https' as the protocol."""
return 'https'

- @deprecated('eventstreams_host', since='20170713')
- def rcstream_host(self, code):
- """DEPRECATED: use eventstreams_host instead."""
- return self.eventstreams_host(code)
-
def eventstreams_host(self, code):
"""Return 'https://stream.wikimedia.org' as the stream hostname."""
return 'https://stream.wikimedia.org'

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5b5c93cc6b1fe5a6b3554d160ac50522ab8e550d
Gerrit-Change-Number: 568982
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)