← Back to team overview

cairo-dock-team team mailing list archive

[Merge] lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Twitter into lp:cairo-dock-plug-ins-extras

 

Eduardo Mucelli Rezende Oliveira has proposed merging lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Twitter into lp:cairo-dock-plug-ins-extras.

Requested reviews:
  Cairo-Dock Team (cairo-dock-team)

For more details, see:
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Twitter/+merge/118419

Fixing the 'Twitter already sent' problem
-- 
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Twitter/+merge/118419
Your team Cairo-Dock Team is requested to review the proposed merge of lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Twitter into lp:cairo-dock-plug-ins-extras.
=== modified file 'Twitter/identica.py'
--- Twitter/identica.py	2012-05-23 21:52:06 +0000
+++ Twitter/identica.py	2012-08-06 20:00:59 +0000
@@ -112,14 +112,14 @@
 
     # If an user tries to post the same tweet twice on a short period of time,
     # twitter is not going to allow, and a error 401 is thrown.
-    def tweet(self, message):                                                                 # popularly "send a tweet"
+    def tweet(self, message):                                                           # popularly "send a tweet"
       try:
         self.dispatch(self.update_url, "POST", {'status':message})
       except HTTPError, err: # urllib2
         if err.code == 401:
           return False
-        else:
-          return True
+      else:
+        return True
       
     def home_timeline(self):
       return self.dispatch(self.home_timeline_url, "GET")

=== modified file 'Twitter/twitter.py'
--- Twitter/twitter.py	2012-05-23 21:52:06 +0000
+++ Twitter/twitter.py	2012-08-06 20:00:59 +0000
@@ -152,14 +152,14 @@
 
     # If an user tries to post the same tweet twice on a short period of time,
     # twitter is not going to allow, and a error 403 is thrown.
-    def tweet(self, message):                                                                 # popularly "send a tweet"
+    def tweet(self, message):                                                              # popularly "send a tweet"
       try:
         self.dispatch(self.update_url, "POST", {'status':message})
       except urllib2.HTTPError, err:
         if err.code == 403:
           return False
-        else:
-          return True
+      else:
+        return True
       
     def retweet(self, tweet_id):
       url = "%s%s.json" % (self.retweet_url_prefix, tweet_id)


Follow ups