JJMC89 added a comment.
We can apply patches like this, but I'm not sure that unconditionally logging
in when initializing `APISite` is a good idea.
diff --git a/pywikibot/comms/eventstreams.py
b/pywikibot/comms/eventstreams.py
index cd9c280c3..aacc4be54 100644
--- a/pywikibot/comms/eventstreams.py
+++ b/pywikibot/comms/eventstreams.py
@@ -143,7 +143,10 @@ class EventStreams(GeneratorWrapper):
'install it with "pip install sseclient"\n')
self.filter = {'all': [], 'any': [], 'none': []}
self._total = None
- self._site = kwargs.pop('site', Site())
+ if 'site' in kwargs:
+ self._site = kwargs.pop('site')
+ else:
+ self._site = Site()
TASK DETAIL
https://phabricator.wikimedia.org/T335720
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JJMC89
Cc: Aklapper, pywikibot-bugs-list, Xqt, JJMC89, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]