diff urwid_satext/files_management.py @ 66:287ff3e1edd1

removed trailing spaces
author Goffi <goffi@goffi.org>
date Sat, 21 Dec 2013 16:51:14 +0100
parents 5cef69971f23
children eddb8369ba06
line wrap: on
line diff
--- a/urwid_satext/files_management.py	Mon Mar 25 13:10:57 2013 +0100
+++ b/urwid_satext/files_management.py	Sat Dec 21 16:51:14 2013 +0100
@@ -29,7 +29,7 @@
 
 class PathEdit(sat_widgets.AdvancedEdit):
     """AdvancedEdit with manage file paths"""
-    
+
     def keypress(self, size, key):
         if key == '~' and self.edit_pos==0:
             expanded = os.path.expanduser('~')
@@ -44,7 +44,7 @@
             self.set_edit_pos(pos)
             return
         else:
-            return super(PathEdit, self).keypress(size, key) 
+            return super(PathEdit, self).keypress(size, key)
 
 class FilesViewer(urwid.WidgetWrap):
     """List specialised for files"""
@@ -57,7 +57,7 @@
         self.onDirClick = onDirClick
         self.onFileClick = onFileClick
         self.files_list = urwid.SimpleListWalker([])
-        self.show_hidden = True 
+        self.show_hidden = True
         listbox = urwid.ListBox(self.files_list)
         urwid.WidgetWrap.__init__(self, listbox)
 
@@ -102,7 +102,7 @@
                 else:
                     files.append(filename)
         except OSError:
-           self.files_list.append(urwid.Text(("warning",_("Impossible to list directory")),'center')) 
+           self.files_list.append(urwid.Text(("warning",_("Impossible to list directory")),'center'))
         directories.sort()
         files.sort()
         if os.path.abspath(path)!='/' and os.path.abspath(path) != '//':
@@ -192,7 +192,7 @@
                 full_path = os.path.join(head,filenames[idx])
                 if filenames[idx].lower().startswith(dir_start.lower()) and os.path.isdir(full_path):
                     completion_data['last_dir'] = filenames[idx]
-                    return full_path 
+                    return full_path
         except OSError:
             pass
         return path
@@ -209,7 +209,7 @@
         except IOError:
             info(_('No GTK bookmarks file found'))
             pass
-        
+
         try:
             dom = minidom.parse(kde_bookm)
             for elem in dom.getElementsByTagName('bookmark'):
@@ -219,7 +219,7 @@
         except IOError:
             info(_('No KDE bookmarks file found'))
             pass
-            
+
         return bookmarks
 
     def onBookmarkSelected(self, button):
@@ -240,6 +240,6 @@
         if not os.path.isdir(path):
             path = dirname(path)
         self.path_wid.set_edit_text(os.path.join(path,wid.get_text()))
-    
+
     def onFileClick(self, wid):
         self.ok_cb(os.path.abspath(os.path.join(self.files_wid.path,wid.get_text())))