From 4156893cfc8794e1968e9324bf8ade371ce7ecb9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 29 Dec 2020 01:30:29 -0600 Subject: [PATCH] Improve inline comment formatting in Stream._read_loop --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 1b0fdac..0651c1f 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -315,7 +315,7 @@ class Stream: length = 0 while not resp.raw.closed: line = buf.read_line() - stripped_line = line.strip() if line else line # line is sometimes None so we need to check here + stripped_line = line.strip() if line else line # line is sometimes None so we need to check here if not stripped_line: self.listener.keep_alive() # keep-alive new lines are expected elif stripped_line.isdigit(): -- 2.25.1