From e5d877c9e93a3fbdb005d4c5a2cfc446e4a40923 Mon Sep 17 00:00:00 2001 From: cclauss <3709715+cclauss@users.noreply.github.com> Date: Sat, 22 Dec 2018 14:38:52 +0100 Subject: [PATCH] docs/streaming_how_to.rst: Update 'async' to 'is_async' for Python >= 3.7 '__async__' is a reserved word in Python >= 3.7 so the current call is a syntax error. --- docs/streaming_how_to.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/streaming_how_to.rst b/docs/streaming_how_to.rst index 641d06f..1e6f8a4 100644 --- a/docs/streaming_how_to.rst +++ b/docs/streaming_how_to.rst @@ -15,7 +15,7 @@ by offering a first walk through. Some features of Tweepy streaming are not covered here. See streaming.py in the Tweepy source code. API authorization is required to access Twitter streams. -Follow the :ref:`auth_tutorial` if you need help with authentication. +Follow the :ref:`auth_tutorial` if you need help wfith authentication. Summary ======= @@ -93,10 +93,10 @@ A Few More Pointers Async Streaming --------------- Streams do not terminate unless the connection is closed, blocking the thread. -Tweepy offers a convenient **async** parameter on **filter** so the stream will run on a new +Tweepy offers a convenient **is_async** parameter on **filter** so the stream will run on a new thread. For example :: - myStream.filter(track=['python'], async=True) + myStream.filter(track=['python'], is_async=True) Handling Errors --------------- -- 2.25.1