Skip to content

Commit 816de4c

Browse files
thijstriemstrarm-hull
authored andcommitted
update instructions (rm-hull#110)
* update instructions * fix tweet_scroll example (for Python 3.7) `async` is a reserved keyword.
1 parent 20d2a6a commit 816de4c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Running the examples
4141
After cloning the repository, enter the ``examples`` directory and try running
4242
one of the following examples listed below. For example::
4343

44-
python examples/3d_box.py
44+
cd examples
45+
python 3d_box.py
4546

4647
========================= ================================================================
4748
Example Description

examples/tweet_scroll.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
# Copyright (c) 2014-18 Richard Hull and contributors
3+
# Copyright (c) 2014-2020 Richard Hull and contributors
44
# See LICENSE.rst for details.
55
# PYTHON_ARGCOMPLETE_OK
66

@@ -107,7 +107,7 @@ def on_status(self, status):
107107

108108
try:
109109
stream = tweepy.Stream(auth=api.auth, listener=listener(queue))
110-
stream.filter(track=search_terms, async=True) # noqa: W606
110+
stream.filter(track=search_terms, is_async=True) # noqa: W606
111111

112112
try:
113113
while True:

0 commit comments

Comments
 (0)