From edb743781521bc7cce4556cf7aaed8aa3bcd403f Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 13:39:41 -0600 Subject: [PATCH] Rename Stream._run to _connect --- tweepy/streaming.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 3c8cccc..eac09e7 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -142,7 +142,7 @@ class Stream: self.running = False self.session = None - def _run(self, endpoint, params=None, body=None): + def _connect(self, endpoint, params=None, body=None): if self.session is None: self.session = requests.Session() @@ -226,11 +226,11 @@ class Stream: def _start(self, *args, threaded=False, **kwargs): self.running = True if threaded: - self._thread = Thread(target=self._run, name="Tweepy Stream", + self._thread = Thread(target=self._connect, name="Tweepy Stream", args=args, kwargs=kwargs, daemon=self.daemon) self._thread.start() else: - self._run(*args, **kwargs) + self._connect(*args, **kwargs) def filter(self, follow=None, track=None, threaded=False, locations=None, stall_warnings=False, languages=None, filter_level=None): -- 2.25.1