From: Harmon Date: Tue, 29 Dec 2020 07:30:29 +0000 (-0600) Subject: Improve inline comment formatting in Stream._read_loop X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4156893cfc8794e1968e9324bf8ade371ce7ecb9;p=tweepy.git Improve inline comment formatting in Stream._read_loop --- 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():