Skip to content

Commit

Permalink
Merge pull request #164 from hyche/patch-1
Browse files Browse the repository at this point in the history
stream: Remove set `decode_unicode`
  • Loading branch information
achillean authored Jan 19, 2022
2 parents 972aa86 + e603d46 commit 43849b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shodan/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _create_stream(self, name, query=None, timeout=None):
return req

def _iter_stream(self, stream, raw):
for line in stream.iter_lines(decode_unicode=True):
for line in stream.iter_lines():
# The Streaming API sends out heartbeat messages that are newlines
# We want to ignore those messages since they don't contain any data
if line:
Expand Down

0 comments on commit 43849b1

Please sign in to comment.