From: cclauss <3709715+cclauss@users.noreply.github.com> Date: Sat, 22 Dec 2018 13:38:52 +0000 (+0100) Subject: docs/streaming_how_to.rst: Update 'async' to 'is_async' for Python >= 3.7 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e5d877c9e93a3fbdb005d4c5a2cfc446e4a40923;p=tweepy.git 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. --- 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 ---------------