projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64527a
)
Revert "Unescape stream data from Twitter"
author
Timo Ewalds
<tewalds@google.com>
Thu, 23 Oct 2014 21:24:33 +0000
(17:24 -0400)
committer
Timo Ewalds
<tewalds@google.com>
Thu, 23 Oct 2014 21:24:33 +0000
(17:24 -0400)
This reverts commit
09e29c815bd21514ec62df2cd8e8d176678bee40
and fixes https://github.com/tweepy/tweepy/issues/495
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index c29222002b5f5b5aa3d459c3af7b56f755f5bb6a..c87ce104fd31ecc68162651672631ce58d342925 100644
(file)
--- a/
tweepy/streaming.py
+++ b/
tweepy/streaming.py
@@
-7,7
+7,6
@@
import requests
from requests.exceptions import Timeout
from threading import Thread
from time import sleep
-from HTMLParser import HTMLParser
import ssl
from tweepy.models import Status
@@
-40,7
+39,7
@@
class StreamListener(object):
Override this method if you wish to manually handle
the stream data. Return False to stop stream and close connection.
"""
- data = json.loads(
HTMLParser().unescape(raw_data)
)
+ data = json.loads(
raw_data
)
if 'in_reply_to_status_id' in data:
status = Status.parse(self.api, data)