diff src/bridge/DBus.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents ca13633d3b6b
children 1f160467f5de
line wrap: on
line diff
--- a/src/bridge/DBus.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/src/bridge/DBus.py	Fri Jan 18 17:55:34 2013 +0100
@@ -94,7 +94,7 @@
                 raise DeferredNotAsync
             return result
 
-    ### signals ###    
+    ### signals ###
 
     @dbus.service.signal(const_INT_PREFIX+const_PLUGIN_SUFFIX,
                          signature='')
@@ -175,8 +175,8 @@
         pass
 
 
-    ### methods ###    
-    
+    ### methods ###
+
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='ss', out_signature='',
                          async_callbacks=None)
@@ -411,11 +411,11 @@
     def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"):
         return self._callback("updateContact", unicode(entity_jid), unicode(name), groups, unicode(profile_key))
 
-    
+
     def __attributes(self, in_sign):
         """Return arguments to user given a in_sign
         @param in_sign: in_sign in the short form (using s,a,i,b etc)
-        @return: list of arguments that correspond to a in_sign (e.g.: "sss" return "arg1, arg2, arg3")""" 
+        @return: list of arguments that correspond to a in_sign (e.g.: "sss" return "arg1, arg2, arg3")"""
         i=0
         idx=0
         attr=[]
@@ -454,19 +454,19 @@
 
         _arguments = inspect_args.args
         _defaults = list(inspect_args.defaults or [])
-        
+
         if inspect.ismethod(method):
             #if we have a method, we don't want the first argument (usually 'self')
             del(_arguments[0])
 
         #first arguments are for the _callback method
         arguments_callback = ', '.join([repr(name)] + ((_arguments + ['callback=callback','errback=errback']) if async else _arguments))
-        
+
         if async:
             _arguments.extend(['callback','errback'])
             _defaults.extend([None, None])
-        
-        
+
+
         #now we create a second list with default values
         for i in range(1, len(_defaults)+1):
             _arguments[-i] = "%s = %s" % (_arguments[-i], repr(_defaults[-i]))
@@ -484,7 +484,7 @@
         function = getattr(self, name)
         func_table = self._dbus_class_table[self.__class__.__module__ + '.' + self.__class__.__name__][function._dbus_interface]
         func_table[function.__name__] = function #Needed for introspection
-    
+
     def addSignal(self, name, int_suffix, signature, doc={}):
         """Dynamically add a signal to Dbus Bridge"""
         attributes = ', '.join(self.__attributes(signature))