@@ -60,7 +60,7 @@ def wrapper(*args):
6060ICONS_DIR = os .path .join (ICE_DIR , "icons" )
6161BROWSER_TYPE_FIREFOX , BROWSER_TYPE_FIREFOX_FLATPAK , BROWSER_TYPE_LIBREWOLF_FLATPAK , BROWSER_TYPE_CHROMIUM , BROWSER_TYPE_EPIPHANY , BROWSER_TYPE_FALKON = range (6 )
6262
63- class Browser () :
63+ class Browser :
6464
6565 def __init__ (self , browser_type , name , exec_path , test_path ):
6666 self .browser_type = browser_type
@@ -70,7 +70,7 @@ def __init__(self, browser_type, name, exec_path, test_path):
7070
7171# This is a data structure representing
7272# the app menu item (path, name, icon..etc.)
73- class WebAppLauncher () :
73+ class WebAppLauncher :
7474
7575 def __init__ (self , path , codename ):
7676 self .path = path
@@ -128,7 +128,7 @@ def __init__(self, path, codename):
128128# This is the backend.
129129# It contains utility functions to load,
130130# save and delete webapps.
131- class WebAppManager () :
131+ class WebAppManager :
132132
133133 def __init__ (self ):
134134 for directory in [ICE_DIR , APPS_DIR , PROFILES_DIR , FIREFOX_PROFILES_DIR , FIREFOX_FLATPAK_PROFILES_DIR , ICONS_DIR , EPIPHANY_PROFILES_DIR , FALKON_PROFILES_DIR ]:
@@ -150,7 +150,7 @@ def get_webapps(self):
150150 print ("Could not create webapp for path" , path )
151151 traceback .print_exc ()
152152
153- return ( webapps )
153+ return webapps
154154
155155 def get_supported_browsers (self ):
156156 browsers = []
@@ -360,7 +360,7 @@ def normalize_url(url):
360360
361361def download_image (root_url , link ):
362362 image = None
363- if ( "://" ) not in link :
363+ if "://" not in link :
364364 if link .startswith ("/" ):
365365 link = root_url + link
366366 else :
@@ -420,7 +420,7 @@ def download_favicon(url):
420420 t = tempfile .NamedTemporaryFile (suffix = ".png" , delete = False )
421421 images .append (["Favicon Grabber" , image , t .name ])
422422 image .save (t .name )
423- images = sorted (images , key = lambda x : ( x [1 ].height ) , reverse = True )
423+ images = sorted (images , key = lambda x : x [1 ].height , reverse = True )
424424 if images :
425425 return images
426426 except Exception as e :
@@ -457,7 +457,7 @@ def download_favicon(url):
457457 except Exception as e :
458458 print (e )
459459
460- images = sorted (images , key = lambda x : ( x [1 ].height ) , reverse = True )
460+ images = sorted (images , key = lambda x : x [1 ].height , reverse = True )
461461 return images
462462
463463if __name__ == "__main__" :
0 commit comments