Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
17606113
Commit
17606113
authored
Jun 15, 2017
by
Josh Martone
Committed by
GitHub
Jun 15, 2017
Browse files
Handles blank keep-alive new lines
Added .strip() to read_line() to handle keep-alive new lines
parent
6ac51f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
17606113
...
...
@@ -313,7 +313,7 @@ class Stream(object):
while
self
.
running
and
not
resp
.
raw
.
closed
:
length
=
0
while
not
resp
.
raw
.
closed
:
line
=
buf
.
read_line
()
line
=
buf
.
read_line
()
.
strip
()
if
not
line
:
self
.
listener
.
keep_alive
()
# keep-alive new lines are expected
elif
line
.
strip
().
isdigit
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment