]> projects.mako.cc - twitter-api-cdsw-solutions/blobdiff - tweepy/models.py
fixed bugs and python3 updates for the twitter projects
[twitter-api-cdsw-solutions] / tweepy / models.py
index af80986ba6b2bdc0e337567cf7f3ee608ca14ff6..30456b257cd95c7553ffebbd5920fdb199c14d82 100644 (file)
@@ -75,13 +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.
-        import sys
-        json['text'] = str(json['text'].encode(sys.stdout.encoding, 'replace'))[2:-1]
-        if 'user' in json:
-            json['user']['screen_name'] = str(json['user']['screen_name'].encode(sys.stdout.encoding, 'replace'))[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?