diff frontends/src/wix/contact_list.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 84a6e83157c2
line wrap: on
line diff
--- a/frontends/src/wix/contact_list.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/src/wix/contact_list.py	Fri Jan 18 17:55:34 2013 +0100
@@ -52,7 +52,7 @@
         self.empty_avatar = join(host.media_dir, 'misc/empty_avatar')
         self.Bind(wx.EVT_LISTBOX, self.onSelected)
         self.Bind(wx.EVT_LISTBOX_DCLICK, self.onActivated)
-    
+
     def __contains__(self, jid):
         return bool(self.__find_idx(jid))
 
@@ -107,7 +107,7 @@
     def __presentItemDefault(self, contact):
         """Make a basic presentation of string contacts in the list."""
         return contact
-    
+
     def __presentItemJID(self, jid):
         """Make a nice presentation of the contact in the list for JID contacts."""
         name = self.getCache(jid,'name')
@@ -116,7 +116,7 @@
         if _show == None or _show == 'unavailable':
             return None
         show =  filter(lambda x : x[0] == _show, const_STATUS)[0]
-            
+
         #show[0]==shortcut
         #show[1]==human readable
         #show[2]==color (or None)
@@ -126,7 +126,7 @@
         #WxPython segfault, and it doesn't without nothing. I couldn't reproduce the case with a basic test script, so it need further investigation before reporting it
         #to WxPython dev. Anyway, the program crash with a segfault, not a python exception, so there is definitely something wrong with WxPython.
         #The case seems to happen when SimpleHtmlListBox parse the HTML with the <img> tag
-        
+
         html = """
         <table border='0'>
         <td>
@@ -140,7 +140,7 @@
         """ % (avatar,
                escape(nick or name or jid.node or jid.short),
                show_html,
-               escape(status)) 
+               escape(status))
 
         return html
 
@@ -163,7 +163,7 @@
                     gp_idx = self.Append(self.__presentGroup(group), Group(group))
                 else:
                     gp_idx = indexes[0]
-                
+
                 _present = self.__presentItem(contact)
                 if _present:
                     self.Insert(_present, gp_idx+1, contact)
@@ -199,7 +199,7 @@
             event.Skip(False)
         else:
             event.Skip()
-    
+
     def onActivated(self, event):
         """Called when a contact is clicked or activated with keyboard."""
         data = self.getSelection()