projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64ea33
)
Improve inline comment formatting in Stream._read_loop
author
Harmon
<Harmon758@gmail.com>
Tue, 29 Dec 2020 07:30:29 +0000
(
01:30
-0600)
committer
Harmon
<Harmon758@gmail.com>
Tue, 29 Dec 2020 07:30:29 +0000
(
01:30
-0600)
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index 1b0fdacf0a87c4a818b8a9764caac48688bee01e..0651c1f26347e0754b0e2b204b5f2c38754b8e94 100644
(file)
--- 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():