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
c8e473ed
Commit
c8e473ed
authored
Jul 10, 2017
by
Aaron Hill
Committed by
GitHub
Jul 10, 2017
Browse files
Merge pull request #896 from jmartone/patch-1
Handles blank keep-alive new lines
parents
6ac51f3a
17606113
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
c8e473ed
...
...
@@ -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