projects
/
twitter-api-cdsw-solutions
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverted the encoding fix that tommy made in lieu of a different crazy hack
[twitter-api-cdsw-solutions]
/
tweepy
/
models.py
diff --git
a/tweepy/models.py
b/tweepy/models.py
index 0db677ea140c6fe49a70ed0a464368c0eb4e4122..30456b257cd95c7553ffebbd5920fdb199c14d82 100644
(file)
--- a/
tweepy/models.py
+++ b/
tweepy/models.py
@@
-75,12
+75,6
@@
class Status(Model):
@classmethod
def parse(cls, api, json):
status = cls(api)
@classmethod
def parse(cls, api, json):
status = cls(api)
-
- # I'm not proud. Blame billg.
- json['text'] = str(json['text'].encode('ascii', 'ignore'))[2:-1]
- if 'user' in json:
- json['user']['screen_name'] = str(json['user']['screen_name'].encode('ascii', 'ignore'))[2:-1]
-
setattr(status, '_json', json)
for k, v in json.items():
if k == 'user':
setattr(status, '_json', json)
for k, v in json.items():
if k == 'user':
Benjamin Mako Hill
||
Want to submit a patch?