TwythonStreamer on_error in examples and documentation is wrong #538

Open
opened 2020-08-19 10:35:02 -07:00 by EhsanKia · 0 comments
EhsanKia commented 2020-08-19 10:35:02 -07:00 (Migrated from github.com)

This pull request added headers to the on_error call:
https://github.com/ryanmcgrath/twython/pull/504

The issue is that all other the examples and documentation show on_error as taking two parameters, so they are all broken.
I copied the code from here:
https://twython.readthedocs.io/en/latest/usage/streaming_api.html

Looking at the codebase, here are the places that need to be updated:
https://github.com/ryanmcgrath/twython/blob/master/docs/usage/streaming_api.rst
https://github.com/ryanmcgrath/twython/blob/master/examples/stream.py
https://github.com/ryanmcgrath/twython/blob/master/tests/test_streaming.py

I can try submitting a PR requests, though updating those seems fairly trivial.

This pull request added headers to the on_error call: https://github.com/ryanmcgrath/twython/pull/504 The issue is that all other the examples and documentation show on_error as taking two parameters, so they are all broken. I copied the code from here: https://twython.readthedocs.io/en/latest/usage/streaming_api.html Looking at the codebase, here are the places that need to be updated: https://github.com/ryanmcgrath/twython/blob/master/docs/usage/streaming_api.rst https://github.com/ryanmcgrath/twython/blob/master/examples/stream.py https://github.com/ryanmcgrath/twython/blob/master/tests/test_streaming.py I can try submitting a PR requests, though updating those seems fairly trivial.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#538
No description provided.