Page MenuHomePhabricator

EventStreams fails with since parameter
Closed, ResolvedPublic

Description

>>> from pywikibot.comms.eventstreams import EventStreams
>>> stream = EventStreams(streams='recentchange', since='20160101111111')

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    stream = EventStreams(streams='recentchange', since='20160101111111')
  File "pywikibot\tools\__init__.py", line 1739, in wrapper
    return obj(*__args, **__kw)
  File "pywikibot\comms\eventstreams.py", line 125, in __init__
    self._url = kwargs.get('url') or self.url
  File "pywikibot\comms\eventstreams.py", line 161, in url
    if self._since else ''))
TypeError: coercing to Unicode: need string or buffer, Timestamp found

Details

Event Timeline

Xqt triaged this task as High priority.Dec 17 2018, 3:34 PM

Change 480094 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Enable mw timestamp with EventStreams

https://gerrit.wikimedia.org/r/480094

Change 480094 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Enable mw timestamp with EventStreams

https://gerrit.wikimedia.org/r/480094