]> jfr.im git - z_archive/twitter.git/commitdiff
Does anyone actually use python-twitter ?
authorReventlov <redacted>
Sat, 16 Aug 2014 17:58:42 +0000 (19:58 +0200)
committerMike Verdone <redacted>
Sat, 30 Aug 2014 14:17:40 +0000 (16:17 +0200)
twitter/cmdline.py

index 598ae30bad3506250b9420f1ee421ad284f03fb1..d94ab61b976d758408bbb282c3bd4b8f632cfa29 100755 (executable)
@@ -206,7 +206,7 @@ def replaceInStatus(status):
     return txt
 def correctRTStatus(status):
     if('retweeted_status' in status):
-        return "RT " + status['retweeted_status']['user']['screen_name'] + " " + status['retweeted_status']['text']
+        return "RT @" + status['retweeted_status']['user']['screen_name'] + " " + status['retweeted_status']['text']
     else:
         return status['text']
 
@@ -543,7 +543,7 @@ class SetStatusAction(Action):
         while statusTxt:
             limit = 140 - len(replies)
             if len(statusTxt) > limit:
-                end = string.rfind(statusTxt, ' ', 0, limit)
+                end = str.rfind(statusTxt, ' ', 0, limit)
             else:
                 end = limit
             splitted.append(" ".join((replies, statusTxt[:end])))