Lint suggestions
[gonvert] / src / gonvert_glade.py
index 227c21c..e45d78f 100755 (executable)
@@ -3,7 +3,6 @@
 
 import os
 import pickle
-import string
 import gettext
 import logging
 
@@ -187,14 +186,6 @@ class Gonvert(object):
                        if 'size' in saved_window:
                                a, b = saved_window['size']
                                self._mainWindow.resize(a, b)
-                       else:
-                               #Maximize if no previous size was found
-                               #self._mainWindow.maximize()
-                               pass
-               else:
-                       #Maximize if no previous window.dat file was found
-                       #self._mainWindow.maximize()
-                       pass
 
                #Restore selections from previously saved settings if it exists and is valid.
                historical_catergory_found = False
@@ -264,7 +255,7 @@ class Gonvert(object):
        def _find_first(self):
                assert len(self._find_result) == 0
                assert self._findIndex == 0
-               findString = string.lower(string.strip(self._findEntry.get_text()))
+               findString = self._findEntry.get_text().strip().lower()
                if not findString:
                        return
 
@@ -290,18 +281,6 @@ class Gonvert(object):
                )
 
        def _find_next(self):
-               """
-               check if 'new find' or 'last find' or 'next-find'
-
-               new-find = run the find algorithm which also selects the first found unit
-                        = self._findIndex = 0 and self._find_result = []
-
-               last-find = restart from top again
-                         = self._findIndex = len(self._find_result)
-
-               next-find = continue to next found location
-                          = self._findIndex = 0 and len(self._find_result)>0
-               """
                if len(self._find_result) == 0:
                        self._find_first()
                else:
@@ -320,18 +299,6 @@ class Gonvert(object):
                        )
 
        def _find_previous(self):
-               """
-               check if 'new find' or 'last find' or 'next-find'
-
-               new-find = run the find algorithm which also selects the first found unit
-                        = self._findIndex = 0 and self._find_result = []
-
-               last-find = restart from top again
-                         = self._findIndex = len(self._find_result)
-
-               next-find = continue to next found location
-                          = self._findIndex = 0 and len(self._find_result)>0
-               """
                if len(self._find_result) == 0:
                        self._find_first()
                else: